forked from opendevstack/ods-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.json.tmpl
42 lines (42 loc) · 1.05 KB
/
pipeline.json.tmpl
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
41
42
{
"kind": "BuildConfig",
"apiVersion": "build.openshift.io/v1",
"metadata": {
"name": "{{.Name}}",
"creationTimestamp": null,
"resourceVersion": "{{.ResourceVersion}}"
},
"spec": {
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "{{.TriggerSecret}}",
"allowEnv": true
}
}
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
"uri": "{{.GitURI}}",
"ref": "{{.Branch}}"
},
"sourceSecret": {
"name": "cd-user-with-password"
}
},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "{{.JenkinsfilePath}}",
"env": {{.Env}}
}
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}