[JIRA] (JENKINS-60700) Credentials Binding Plugin binds to partial string matches

1 view
Skip to first unread message

tim.merkt@perspecta.com (JIRA)

unread,
Jan 8, 2020, 1:09:02 PM1/8/20
to jenkinsc...@googlegroups.com
Tim Merkt created an issue
 
Jenkins / Bug JENKINS-60700
Credentials Binding Plugin binds to partial string matches
Issue Type: Bug Bug
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2020-01-08 18:08
Environment: credentials-binding-plugin 1.20
Jenkins 2.190.1
Priority: Minor Minor
Reporter: Tim Merkt

Same as JENKINS-43032, except the value I bound to a username in withCredentials is being bound to a string not related to the binding.  

ex.

CHART_NAME=ingestion-tracking

value of DATASOURCE_USERNAME = ingestion

withCredentials([usernamePassword(credentialsId: "${DATASOURCE_CREDS}", passwordVariable: 'DATASOURCE_PASSWORD', usernameVariable: 'DATASOURCE_USERNAME')
]) {
  sh "echo ${DATASOURCE_USERNAME}"

  sh "echo ${CHART_NAME}"
}

will yield:
****
****-tracking

 

I expect:
****

ingestion-tracking

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages