Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: workflow-plugin
Created: 12/Mar/15 2:56 PM
Description:

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")
}
Project: Jenkins
Priority: Minor Minor
Reporter: Kohsuke Kawaguchi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to