File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,10 +92,11 @@ type buildConfig struct {
9292 } `json:"jenkinsPipelineStrategy"`
9393 } `json:"strategy"`
9494 Triggers []struct {
95- Type string `json:"type"`
96- Generic struct {
97- Secret string `json:"triggerSecret"`
98- } `json:"generic"`
95+ Type string `json:"type"`
96+ // Generic struct {
97+ // Secret string `json:"secret"`
98+ // AllowEnv bool `json:"allowEnv"`
99+ // } `json:"generic"`
99100 } `json:"triggers"`
100101 } `json:"spec"`
101102}
@@ -515,7 +516,7 @@ func (s *Server) HandleRoot() http.HandlerFunc {
515516 updatePipeline = true
516517 resourceVersion = bc .Metadata .ResourceVersion
517518 }
518- if bc .Spec .Triggers .Generic . Secret == "" {
519+ if bc .Spec .Triggers .Type == "" {
519520 log .Println (requestID , fmt .Sprintf (
520521 "Trigger secret does not exists, updating pipeline" ,
521522 ))
You can’t perform that action at this time.
0 commit comments