[JIRA] (JENKINS-59540) Using refspec without url causes checkout to fail

6 views
Skip to first unread message

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

unread,
Sep 26, 2019, 6:54:02 AM9/26/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Bug JENKINS-59540
Using refspec without url causes checkout to fail
Change By: Mark Waite
Summary: Using refspec without url causes checkout to fail
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

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

unread,
Sep 26, 2019, 6:57:05 AM9/26/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-59540
 
Re: Using refspec without url causes checkout to fail
There is a subtle syntax error in the checkout syntax that you are using.  The declaration is using two {{userRemoteConfig}} values when I believe that you want one.

Your syntax is:

{noformat}
userRemoteConfigs: [
  [refspec: ''], // Creates an entry with null URL, null credentials ID
  [credentialsId: '**', url: '****']
]
{noformat}

The desired syntax is:

{noformat}
userRemoteConfigs: [
  [refspec: '', credentialsId: '**', url: '****']
]
{noformat}


The plugin should be taught to log a warning message in this case, since a remote without a URL is not helpful to the user.

raihaan.shouhell@autodesk.com (JIRA)

unread,
Sep 26, 2019, 7:06:02 AM9/26/19
to jenkinsc...@googlegroups.com

Oh my god, how did I not notice that. Thanks Mark Waite

Reply all
Reply to author
Forward
0 new messages