[JIRA] (JENKINS-46588) Pipeline Branch Specifier "blank for 'any'" fails

9 views
Skip to first unread message

dave32@gmail.com (JIRA)

unread,
Jul 12, 2018, 2:49:02 PM7/12/18
to jenkinsc...@googlegroups.com
Dave Cobb commented on Bug JENKINS-46588
 
Re: Pipeline Branch Specifier "blank for 'any'" fails

Is there a workaround for this other than specifying a branch name?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

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

unread,
Jul 12, 2018, 3:17:03 PM7/12/18
to jenkinsc...@googlegroups.com

No Dave Cobb, the only solution is to specify the name of the branch to be built.

When the branch name is known in the context of a multi-branch Pipeline, it is set as BRANCH_NAME as described in stackoverflow. More detail is available in the comments of JENKINS-30252.

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

unread,
Feb 25, 2019, 8:34:04 AM2/25/19
to jenkinsc...@googlegroups.com
Mark Waite stopped work on Bug JENKINS-46588
 
Change By: Mark Waite
Status: In Progress Open
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jorge.sivil@gmail.com (JIRA)

unread,
Aug 26, 2019, 3:35:02 PM8/26/19
to jenkinsc...@googlegroups.com

I had the same problem, but for this you have to use another type of project "Multibranch Pipeline" instead of "Pipeline"

 

saintzyo@gmail.com (JIRA)

unread,
Sep 20, 2019, 8:39:02 AM9/20/19
to jenkinsc...@googlegroups.com

"Lightweight checkout" checkbox causes this issue. If you uncheck it everything will work.

Just for temp workaround.

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

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

unread,
Jan 13, 2020, 11:56:04 PM1/13/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Bug JENKINS-46588
Change By: Mark Waite
In Pipeline Job, "Branches to build configuration" it's said "blanck for any" but it fails when I manually trigger the build with :
java.lang.IllegalArgumentException: Invalid refspec refs/heads/**
see screen shots for more details



is there any other way to build all branches?

*Work around the issue by disabling lightweight checkout in the job definition*

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

unread,
Jan 13, 2020, 11:56:04 PM1/13/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Priority: Blocker Minor
Reply all
Reply to author
Forward
0 new messages