Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27386

Access credentials value from workflow Groovy script

      In addition to the block syntax to bind credentials into enviornment variables, we want a function that allows workflow scripts to load the credentials into the script, so that it can be used for arbitrary purposes.

      This including passing API tokens as command-line options to Gradle invocation

          [JENKINS-27386] Access credentials value from workflow Groovy script

          Kohsuke Kawaguchi created issue -
          Jesse Glick made changes -
          Labels New: workflow
          Jesse Glick made changes -
          Labels Original: workflow New: api workflow

          Jesse Glick added a comment -

          Would be suitable for certain kinds of credentials only; need some new API to let eligible credentials export their secrets as strings.

          Jesse Glick added a comment - Would be suitable for certain kinds of credentials only; need some new API to let eligible credentials export their secrets as strings.
          Kohsuke Kawaguchi made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Kohsuke Kawaguchi [ kohsuke ]
          Jesse Glick made changes -
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Jesse Glick made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-32314 [ JENKINS-32314 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-27398 [ JENKINS-27398 ]
          Jesse Glick made changes -
          Epic Link New: JENKINS-35394 [ 171187 ]

            Unassigned Unassigned
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: