Closed 478859-anurag closed 3 years ago
Any code checkin under that github organisation is triggering a job in generictriggerdemo jenkins pipeline
See: https://github.com/jenkinsci/generic-webhook-trigger-plugin#trigger-only-specific-job
Or open new issue where you follow issue template
I have enabled this plugin at organisation level initially with normal github-webhook, which was already triggering Jenkin’s pipeline for multiple repos under an organisation .
With both webhooks in place, I have only added generic trigger in Jenkinsfile for a single branch in a repo with token variable defined in webhook and Jenkinsfile trigger lets say the pipeline name is generictriggerdemo. Now for some reason when I created Jenkins file and pushed the code in a separate repo altogether with no generic trigger lets say the name is githubwebhookdemo. That is also triggering a jenkins build on the jenkins pipeline where I am using generic trigger i.e generictriggerdemo.
curl
command and its response.You may also have a look at the test cases as they should answer the most common questions:
https://github.com/jenkinsci/generic-webhook-trigger-plugin/tree/master/src/test/resources/org/jenkinsci/plugins/gwt/bdd
If you are fiddling with expressions, you may want to checkout:
A Curl command can look something like this: