-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
40 lines (35 loc) · 951 Bytes
/
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
30
31
32
33
34
35
36
37
38
39
40
package utils
const (
PipelineNamespace = "cattle-pipeline"
DefaultRegistry = "index.docker.io"
DefaultTag = "latest"
StepTypeSourceCode = "sourceCode"
StepTypeRunScript = "runScript"
StepTypePublishImage = "publishImage"
TriggerTypeCron = "cron"
TriggerTypeUser = "user"
TriggerTypeWebhook = "webhook"
StateWaiting = "Waiting"
StateBuilding = "Building"
StateSuccess = "Success"
StateFail = "Fail"
StateError = "Error"
StateSkip = "Skipped"
StateAbort = "Abort"
StatePending = "Pending"
StateDenied = "Denied"
PipelineFinishLabel = "pipeline.management.cattle.io/finish"
PipelineCronLabel = "pipeline.management.cattle.io/cron"
)
var PreservedEnvVars = []string{
"CICD_GIT_COMMIT",
"CICD_GIT_REPO_NAME",
"CICD_GIT_BRANCH",
"CICD_GIT_URL",
"CICD_GIT_TAG",
"CICD_PIPELINE_ID",
"CICD_PIPELINE_NAME",
"CICD_TRIGGER_TYPE",
"CICD_EXECUTION_ID",
"CICD_EXECUTION_SEQUENCE",
}