-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: credentials-binding-plugin
-
None
-
Environment:credentials-binding-plugin 1.20
Jenkins 2.190.1
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
Â