mohamicorp / stash-jenkins-postreceive-webhook

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

Added NewBranchEligibilityFilter #202

Open Setre14 opened 6 years ago

Setre14 commented 6 years ago

Skip new branches without changes which are created in Bitbucket

bfarka commented 6 years ago

@alexBraidwood it would be great if you find time to have a look on that PR?

we would need it since that would reduce the load of our jenkins a lot...

THX

alexBraidwood commented 6 years ago

@Setre14 First of all, thanks for the pull request.

Is this a fix for Jenkins builds that build for any branch committed to? If that's the case, this sounds easily fixed by specifying which branches to build in Jenkins instead of eating every commit to every branch.

EDIT: For clarity.

bfarka commented 6 years ago

@alexBraidwood : me and @Setre14 worked on this PR...

what it does is...

if you create an branch in BB (or via an linked jira) the new branch without any changes gets built on Jenkins..

we want to skip that very first build since the result should be the same like on master and creates a bunch of load on our systems..

rbrindl commented 6 years ago

Is there any progress with this PR? We could use it as well. As described above, many of our devs use the workflow "create branch from jira", so all those builds (up to 50 a day) are completely useless and block the CI from doing more useful tasks.