-
Bug
-
Resolution: Fixed
-
Major
Unclear if it's in workflow or in credentials-binding plugin.
During an engagement, I found that the following ugly but seemingly valid workflow script doesn't let me acess the value of the secret:
def credential(name) {
def v;
withCredentials([[$class: 'StringBinding', credentialsId: name, variable: 'foo']]) {
v = env.foo;
}
return v
}
node {
echo credential("idOfSecretText")
}
- is related to
-
JENKINS-26552 @StepContextParameter EnvVars missing Computer.environment
-
- Resolved
-
- links to