Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58442

Skip initial build on first branch indexing not working

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          mseashore Matt Seashore added a comment -

          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.

          Show
          mseashore Matt Seashore added a comment - 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.
          Hide
          brianjmurrell Brian J Murrell added a comment -

          Indeed.  Even just a single line stating that the default is Any Of so that people know it's an OR'd list would be useful.

          But thanks for the additional information.  Very useful.

          Show
          brianjmurrell Brian J Murrell added a comment - Indeed.  Even just a single line stating that the default is Any Of so that people know it's an OR'd list would be useful. But thanks for the additional information.  Very useful.

            People

            • Assignee:
              Unassigned
              Reporter:
              brianjmurrell Brian J Murrell
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: