forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
22 lines (21 loc) · 1.06 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package jenkins
const (
CreateJobURI = "/createItem"
UpdateJobURI = "/job/%s/config.xml"
StopJobURI = "/job/%s/%d/stop"
CancelQueueItemURI = "/queue/cancelItem?id=%d"
DeleteBuildURI = "/job/%s/%d/doDelete"
GetCrumbURI = "/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)"
JenkinsJobBuildURI = "/job/%s/build"
JenkinsJobInfoURI = "/job/%s/api/json"
JenkinsSetCredURI = "/credentials/store/system/domain/_/createCredentials"
JenkinsGetCredURI = "/credentials/store/system/domain/_/credential/%s/api/json"
JenkinsDeleteCredURI = "/credentials/store/system/domain/_/credential/%s/doDelete"
JenkinsBuildInfoURI = "/job/%s/lastBuild/api/json"
JenkinsWFBuildInfoURI = "/job/%s/lastBuild/wfapi"
JenkinsWFNodeInfoURI = "/job/%s/lastBuild/execution/node/%s/wfapi"
JenkinsWFNodeLogURI = "/job/%s/lastBuild/execution/node/%s/wfapi/log"
JenkinsBuildLogURI = "/job/%s/%d/timestamps/?elapsed=HH'h'mm'm'ss's'S'ms'&appendLog"
ScriptURI = "/scriptText"
PrepareWFNodeID = "5"
)