-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Jenkins ver. 2.176.1
Basic Branch Build Strategies Plugin 1.3.2
We have enabled the Skip initial build on first branch indexing build strategy:
as a workaround to JENKINS-56255 but it seems to also be not working. We are still getting the branch build from GitHub PRs happening when a new PR is pushed. Am I misunderstanding what this build strategy does?
It did seem to work for a while, but maybe that was just the intermittent-ness of JENKINS-56255 on our side for a while.
This confused me too, but as per: https://issues.jenkins-ci.org/browse/JENKINS-58254?focusedCommentId=370076&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-370076 this is working as designed (all build strategies are OR'd together). This effectively always means to use "Skip Initial Build on First Branch Indexing" you'll need to add it to a "All Strategies Match" block. I would suggest an enhancement be added to the documentation to indicate this as it is confusing.
For example, in your case above, need to remove the existing build strategies. Add an "All Strategies Match" build strategy and add "Change Requests" and "Skip Initial Build on First Branch Indexing" to that.