[JIRA] (JENKINS-22752) Initial poll (just after project creation) spawns builds for all the existing branches in repository

4 views
Skip to first unread message

deadmoto@gmail.com (JIRA)

unread,
Nov 4, 2016, 8:39:02 PM11/4/16
to jenkinsc...@googlegroups.com
Dmitry Berezhnoy commented on Bug JENKINS-22752
 
Re: Initial poll (just after project creation) spawns builds for all the existing branches in repository

We are also experiencing the same issue.
I am trying to setup a job to be triggered by pull requests which uses the following refspec:
+refs/pull-requests/:refs/remotes/origin/pull-requests/
What happens is that Jenkins is trying to build all existing pull requests before it even starts reacting to push notifications.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

cobexer@gmail.com (JIRA)

unread,
Nov 15, 2016, 1:59:02 AM11/15/16
to jenkinsc...@googlegroups.com

franag1987@gmail.com (JIRA)

unread,
Feb 11, 2019, 6:22:03 AM2/11/19
to jenkinsc...@googlegroups.com

Any workaround to avoid this?

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

robert@idacmedia.com (JIRA)

unread,
Feb 11, 2019, 7:05:03 AM2/11/19
to jenkinsc...@googlegroups.com

I've not tried this, but you could look at "Additional behaviours" > "Strategy for choosing what to build" > "Maximum age of commit" to limit what is getting built.

franag1987@gmail.com (JIRA)

unread,
Feb 11, 2019, 7:21:02 AM2/11/19
to jenkinsc...@googlegroups.com

Perfect! I set "Maximum age of commit" to 1 day and works like a charm.

I want to build and test current working branches, so that solution is perfect for me.

nicolas.deloof@gmail.com (JIRA)

unread,
Apr 24, 2019, 10:28:16 AM4/24/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 23, 2020, 5:03:06 PM1/23/20
to jenkinsc...@googlegroups.com
Mark Waite updated Bug JENKINS-22752
 

Ancestry chooser included in branch build strategies with git plugin 2.3.1 and later.

Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: git plugin 2.3.1 and later include ancestry build chooser
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 23, 2020, 5:03:07 PM1/23/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages