-
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
[JENKINS-27389] credentials set via 'withCredentials' block isn't accesible from 'env'
Link |
New:
This issue is related to |
Assignee | Original: Jesse Glick [ jglick ] | New: Kohsuke Kawaguchi [ kohsuke ] |
Component/s | New: credentials-binding-plugin [ 18129 ] | |
Component/s | Original: workflow-plugin [ 18820 ] | |
Issue Type | Original: Improvement [ 4 ] | New: Bug [ 1 ] |
Labels | New: workflow | |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Assignee | Original: Kohsuke Kawaguchi [ kohsuke ] | New: Jesse Glick [ jglick ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "PR 6 (Web Link)" [ 12201 ] |
Possibly related to
JENKINS-26552and changes in PR 41.