I am using Bitbucket "Post Webhooks" to trigger Jenkins Builds on every push. When Jenkins is busy and commits are pushed multiple times within a short timeframe, it may occur, however, that Jenkins combines multiple branch events into 1 build.
Jenkins receives all branch events reliable and even shows all branch events responsible for a build within the build info. E.g:
Build #10 (Jul 27, 2022, 1:40:00 PM). Changes:
Events:
How may I prevent Jenkins from combining multiple events into 1 build and make him execute separate builds for each branch event instead?
https://plugins.jenkins.io/generic-webhook-trigger/
You can solve this by making the one job parameterized. Resolve one of the parameters with something unique from the webhook. This will make each trigger unique and Jenkins will not batch the builds into one build.
https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/171
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With