mohamicorp / stash-jenkins-postreceive-webhook

Webhook used to notify Jenkins when commits are made to Stash
Other
138 stars 98 forks source link

Hook Only Invokes One Job #112

Closed william-bautista closed 9 years ago

william-bautista commented 9 years ago

When a user pushes a commit to multiple branches in the same action, only one job is triggered. For example:

git commit -am "Release 4.1" git checkout release git reset --hard origin/release git merge master git checkout master git push origin master release

When the above push action is executed, only the Jenkins job that watches the "master" branch is executed. However, when two push actions are executed (one right after the other), then both jobs execute. For example:

git push origin master git push origin release

mikesir87 commented 9 years ago

Sorry for taking a while to get back to you... this is because the code was originally sending only one notification, which made sense before sending the branch and hash information. Now that that info can be sent, it should support multiple notifications.

A pull request that was merged recently actually brought this support, so will be in the next release! Thanks for checking in though!