File tree Expand file tree Collapse file tree 2 files changed +24
-28
lines changed
Expand file tree Collapse file tree 2 files changed +24
-28
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,18 @@ type buildConfig struct {
8181 ResourceVersion string `json:"resourceVersion"`
8282 } `json:"metadata"`
8383 Spec struct {
84- Source struct {
85- Git struct {
86- Ref string `json:"ref"`
87- } `json:"git"`
88- } `json:"source"`
8984 Strategy struct {
9085 JenkinsPipelineStrategy struct {
9186 JenkinsfilePath string `json:"jenkinsfilePath"`
9287 } `json:"jenkinsPipelineStrategy"`
9388 } `json:"strategy"`
89+ Source struct {
90+ Git struct {
91+ Ref string `json:"ref"`
92+ } `json:"git"`
93+ } `json:"source"`
9494 Triggers []struct {
9595 Type string `json:"type"`
96- // Generic struct {
97- // Secret string `json:"secret"`
98- // AllowEnv bool `json:"allowEnv"`
99- // } `json:"generic"`
10096 } `json:"triggers"`
10197 } `json:"spec"`
10298}
Original file line number Diff line number Diff line change 77 " resourceVersion" : " {{.ResourceVersion}}"
88 },
99 " spec" : {
10- " triggers " : [
11- {
12- " type " : " Generic " ,
13- " generic " : {
14- " secret " : " {{.TriggerSecret}} " ,
15- " allowEnv " : true
16- }
10+ " output " : {},
11+ " resources " : {},
12+ " strategy " : {
13+ " type " : " JenkinsPipeline " ,
14+ " jenkinsPipelineStrategy " : {
15+ " jenkinsfilePath " : " {{.JenkinsfilePath}} " ,
16+ " env " : {{ .Env } }
1717 }
18- ] ,
19- " runPolicy " : " Serial " ,
18+ } ,
19+ " postCommit " : {} ,
2020 " source" : {
2121 " type" : " Git" ,
2222 " git" : {
2727 " name" : " cd-user-with-password"
2828 }
2929 },
30- " strategy" : {
31- " type" : " JenkinsPipeline" ,
32- " jenkinsPipelineStrategy" : {
33- " jenkinsfilePath" : " {{.JenkinsfilePath}}" ,
34- " env" : {{.Env }}
30+ " triggers" : [
31+ {
32+ " type" : " Generic" ,
33+ " generic" : {
34+ " secret" : " {{.TriggerSecret}}" ,
35+ " allowEnv" : true
36+ }
3537 }
36- },
37- " output" : {},
38- " resources" : {},
39- " postCommit" : {},
40- " nodeSelector" : {}
38+ ],
39+ " nodeSelector" : {},
40+ " runPolicy" : " Serial"
4141 }
4242}
You can’t perform that action at this time.
0 commit comments