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

          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.

          Jesse Glick added a comment -

          I think this is a bad idea as it would not be able to mask accidentally disclosed secrets.

          Jesse Glick added a comment - I think this is a bad idea as it would not be able to mask accidentally disclosed secrets.

          Jesse Glick added a comment -

          As above.

          Jesse Glick added a comment - As above.

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

              Created:
              Updated:
              Resolved: