Skip to content

Commit 110fe39

Browse files
committed
test with type value instead
1 parent f0296e9 commit 110fe39

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

jenkins/webhook-proxy/main.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
))

0 commit comments

Comments
 (0)