Skip to content

Commit

Permalink
restore templates
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Aug 30, 2024
1 parent 38a2ad5 commit 2f61e25
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 152 deletions.
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/pipeline.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "{{.ResourceVersion}}"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "{{.JenkinsfilePath}}",
"env": {{.Env}}
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "{{.TriggerSecret}}",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "{{.TriggerSecret}}",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "{{.JenkinsfilePath}}",
"env": {{.Env}}
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/testdata/golden/build-component-pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "0"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/testdata/golden/build-pipeline-branch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "42"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "42"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "bar/Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "bar/Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/testdata/golden/build-pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "0"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": [{"name":"FOO_BAR","value":"baz"}]
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/testdata/golden/foo-cd-pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "0"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": null
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "Jenkinsfile",
"env": null
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
39 changes: 20 additions & 19 deletions jenkins/webhook-proxy/testdata/golden/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"resourceVersion": "0"
},
"spec": {
"output": {},
"resources": {},
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "foo/Jenkinsfile",
"env": [{"name":"FOO","value":"bar"}]
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
}
},
"postCommit": {},
],
"runPolicy": "Serial",
"source": {
"type": "Git",
"git": {
Expand All @@ -27,15 +27,16 @@
"name": "cd-user-with-password"
}
},
"triggers": [
{
"type": "Generic",
"generic": {
"secret": "s3cr3t",
"allowEnv": true
}
"strategy": {
"type": "JenkinsPipeline",
"jenkinsPipelineStrategy": {
"jenkinsfilePath": "foo/Jenkinsfile",
"env": [{"name":"FOO","value":"bar"}]
}
],
"runPolicy": "Serial"
},
"output": {},
"resources": {},
"postCommit": {},
"nodeSelector": {}
}
}
}
Loading

0 comments on commit 2f61e25

Please sign in to comment.