[JIRA] (JENKINS-58967) Credentials not available in multibranch project after upgrade to LTS 2.176.2

4 views
Skip to first unread message

bram.mertens@anubex.com (JIRA)

unread,
Aug 16, 2019, 10:21:04 AM8/16/19
to jenkinsc...@googlegroups.com
Bram Mertens created an issue
 
Jenkins / Bug JENKINS-58967
Credentials not available in multibranch project after upgrade to LTS 2.176.2
Issue Type: Bug Bug
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2019-08-16 14:20
Labels: regression pipeline credentials
Priority: Blocker Blocker
Reporter: Bram Mertens

We recently performed a long overdue upgrade from 2.95 to LTS 2.176.2.

 

In a Multibranch pipeline we're using the withCredentials syntax in several places:

withCredentials([usernamePassword(credentialsId: 'name-of-credentials', passwordVariable: 'PASSWORD', usernameVariable: 'USER')]) {
{{ // some block}}
}

 

This has worked fine for several weeks but since the upgrade we get:
[Pipeline] withCredentials[Pipeline] // withCredentials[Pipeline] }[Pipeline] // node[Pipeline] }[Pipeline] // stage[Pipeline] echo*15:07:06* failed[Pipeline] }[Pipeline] // timestamps[Pipeline] }[Pipeline] // node[Pipeline] End of Pipeline[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
ERROR: Could not find credentials entry with ID 'name-of-credentials'
Finished: FAILURE

The pipeline has not changed, the credentials have not been updated.

I have found that the snippet generator displays an empty drop down list when I start it from within the "trunk" directory of the Multibranch pipeline.

At one point I added a new credential and limited it to the folder of the Multibranch pipeline.
When I start the snippet generator in that directory the new credential as well as the old credentials are both visible.
When I start the snippet generator at the top level only the old credential is visible (as expected).

The problem is that within the branches (currently only trunk) of the multibranch pipeline the credentials are not visible.

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

bram.mertens@anubex.com (JIRA)

unread,
Aug 16, 2019, 10:24:01 AM8/16/19
to jenkinsc...@googlegroups.com

bram.mertens@anubex.com (JIRA)

unread,
Aug 16, 2019, 10:28:02 AM8/16/19
to jenkinsc...@googlegroups.com
Bram Mertens updated an issue
We recently performed a long overdue upgrade from 2.95 to LTS 2.176.2.

 

In a Multibranch pipeline we're using the withCredentials syntax in several places:

{ { noformat}
withCredentials([usernamePassword(credentialsId: 'name-of-credentials', passwordVariable: 'PASSWORD', usernameVariable: 'USER')]) { }}
{{ // some block
} }

{
{ noformat } }}


 

This has worked fine for several weeks but since the upgrade we get:
{ { noformat}
[Pipeline] withCredentials
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
*15:07:06*  failed
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
ERROR: Could not find credentials entry with ID 'name-of-credentials'
Finished: FAILURE
{noformat } }


The pipeline has not changed, the credentials have not been updated.

I have found that the snippet generator displays an empty drop down list when I start it from within the "trunk" directory of the Multibranch pipeline.

At one point I added a new credential and limited it to the folder of the Multibranch pipeline.
When I start the snippet generator in that directory the new credential as well as the old credentials are both visible.
When I start the snippet generator at the top level only the old credential is visible (as expected).

The problem is that within the branches (currently only trunk) of the multibranch pipeline the credentials are not visible.
Reply all
Reply to author
Forward
0 new messages