Documentation ¶
Index ¶
- type Client
- func (jc *Client) Build(name string, parameters map[string]string) (int64, error)
- func (jc *Client) CreateJob(jobName string, xmlData string) (string, error)
- func (jc *Client) DownloadArtifacts(jobName string, buildNumber int, toDirectory string) (string, error)
- func (jc *Client) GetBuild(jobName string, buildNumber int, withConsole bool) (*jenkinsTY.BuildResponse, error)
- func (jc *Client) GetBuildByQueueID(jobName string, queueID int64, limit int) (*jenkinsTY.BuildResponse, error)
- func (jc *Client) GetConsole(jobName string, buildNumber int, watch bool) (string, error)
- func (jc *Client) ListBuilds(jobName string, limit int, withConsole bool) ([]jenkinsTY.BuildResponse, error)
- func (jc *Client) ListJobs(depth int) ([]gojenkins.InnerJob, error)
- func (jc *Client) ListParameters(jobName string) ([]gojenkins.ParameterDefinition, error)
- func (jc *Client) Status() (*gojenkins.ExecutorResponse, error)
- func (jc *Client) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client type
func (*Client) DownloadArtifacts ¶
func (jc *Client) DownloadArtifacts(jobName string, buildNumber int, toDirectory string) (string, error)
DownloadArtifacts of a build
func (*Client) GetBuild ¶
func (jc *Client) GetBuild(jobName string, buildNumber int, withConsole bool) (*jenkinsTY.BuildResponse, error)
GetBuild returns build details of a job
func (*Client) GetBuildByQueueID ¶ added in v1.1.0
func (jc *Client) GetBuildByQueueID(jobName string, queueID int64, limit int) (*jenkinsTY.BuildResponse, error)
returns build details based on queue id
func (*Client) GetConsole ¶
GetConsole returns/prints build console log
func (*Client) ListBuilds ¶
func (jc *Client) ListBuilds(jobName string, limit int, withConsole bool) ([]jenkinsTY.BuildResponse, error)
ListBuilds details
func (*Client) ListParameters ¶
func (jc *Client) ListParameters(jobName string) ([]gojenkins.ParameterDefinition, error)
ListParameters of a job
Click to show internal directories.
Click to hide internal directories.