-
Notifications
You must be signed in to change notification settings - Fork 784
/
constants.go
31 lines (22 loc) · 1.03 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
30
31
package tekton
import (
v1 "github.com/jenkins-x/jx-api/pkg/apis/jenkins.io/v1"
)
const (
// LastBuildNumberAnnotationPrefix used to annotate SourceRepository with the latest build number for a branch
LastBuildNumberAnnotationPrefix = "jenkins.io/last-build-number-for-"
// LabelOwner is the label added to Tekton CRDs for the owner of the repository being built.
LabelOwner = v1.LabelOwner
// LabelRepo is the label added to Tekton CRDs for the repository being built.
LabelRepo = v1.LabelRepository
// LabelBranch is the label added to Tekton CRDs for the branch being built.
LabelBranch = v1.LabelBranch
// LabelBuild is the label added to Tekton CRDs for the build number.
LabelBuild = v1.LabelBuild
// LabelContext is the label added to Tekton CRDs for the context being built.
LabelContext = "context"
// LabelType is the label added to Tekton CRDs for the type of pipeline.
LabelType = "jenkins.io/pipelineType"
// DefaultPipelineSA is the default service account used for pipelines
DefaultPipelineSA = "tekton-bot"
)