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

Access credentials value from workflow Groovy script

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            jglick 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.

            jglick 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.
            jglick Jesse Glick added a comment -

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

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

            As above.

            jglick Jesse Glick added a comment - As above.

            People

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

              Dates

                Created:
                Updated:
                Resolved: