Reputation: 31
Trying to trigger Jenkins pipeline using Github webhooks for a specific branch. Pipeline should trigger for a merge commit but having an issue in triggering. Tried it using 'Generic Webhook Trigger' plugin.
If I use ^(refs/heads/release-1.0)$ in optional filters and pipeline is triggering whenever something is merged into release-1.0 branch and pipeline build is successful
But when i used ^(refs/heads/release-)$ in optional filters, the pipeline is not triggering. Here why I am using release- is release branches have tag numbers. For example: release-1.0, release-1.1, release-1.2 and so on.
Can anyone help me with this question.
Upvotes: 1
Views: 666