forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
29 lines (26 loc) · 1.32 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
23
24
25
26
27
28
29
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"
markSkipScript = "Utils.markStageSkippedForConditional('%s')"
WorkflowJobPlugin = "workflow-job@2.17"
FlowDefinitionClass = "org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition"
FlowDefinitionPlugin = "workflow-cps@2.43"
JenkinsJobPrefix = "pipeline_"
)