[JIRA] (JENKINS-58442) Skip initial build on first branch indexing not working

6 views
Skip to first unread message

brian.murrell@intel.com (JIRA)

unread,
Jul 11, 2019, 9:53:02 AM7/11/19
to jenkinsc...@googlegroups.com
Brian J Murrell created an issue
 
Jenkins / Bug JENKINS-58442
Skip initial build on first branch indexing not working
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: image-2019-07-11-09-50-46-349.png
Components: basic-branch-build-strategies-plugin
Created: 2019-07-11 13:52
Environment: Jenkins ver. 2.176.1
Basic Branch Build Strategies Plugin 1.3.2
Priority: Critical Critical
Reporter: Brian J Murrell

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mseashore@gmail.com (JIRA)

unread,
Nov 13, 2019, 7:46:03 PM11/13/19
to jenkinsc...@googlegroups.com
Matt Seashore commented on Bug JENKINS-58442
 
Re: Skip initial build on first branch indexing not working

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.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

brian.murrell@intel.com (JIRA)

unread,
Nov 14, 2019, 6:21:02 AM11/14/19
to jenkinsc...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages