Documentation ¶
Index ¶
- Constants
- type Client
- type Job
- func (t *Job) BuildWithParameters(name string, buildParams map[string]string) error
- func (t *Job) Create(name, xmlConfig string) error
- func (t *Job) Delete(name string) error
- func (t *Job) GetLogSize(name string, buildNum int) (int, error)
- func (t *Job) GetStatus(name string, buildNum int) (string, bool, error)
- func (t *Job) GetTextLog(name string, buildNum int, limit ...int) (string, error)
- func (t *Job) IsExist(name string) (bool, error)
- func (t *Job) Update(name, xmlConfig string) error
Constants ¶
View Source
const ( PATH_CREAT = "/createItem/" PATH_DELETE = "/job/%s/doDelete" // /job/{name}/deDelete PATH_UPDATE = "/job/%s/config.xml" // appName PATH_VIEW_JOB = "/job/%s/" // appName PATH_BUILD_WITHPARAMETERS = "/job/%s/buildWithParameters" // appName PATH_LOG_TEXT = "/job/%s/%d/logText/progressiveText" // appName, jenkins job num PATH_JOB_JSON = "/job/%s/%d/api/json" // appName, jenkins job num )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // e.g: http://localhost:8080 Domain string // jenkins basic auth username and password Username string Password string }
func (*Client) CrumbIssuer ¶
Jenkins-Crumb:9dc7abb9785492b95f781a4de469e600 for jenkins CSRF Protection
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) BuildWithParameters ¶
buildParams = {"BUILD_ID": "1", "BUILD_BRANCH": "master"}
func (*Job) GetTextLog ¶
get log of the job jenkins job name, jenkins job build number, (limit[0]:start, limit[1]logSize)
Click to show internal directories.
Click to hide internal directories.