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

Enable access to credentials within CPS workflow scripts

    Details

    • Similar Issues:

      Description

      Workflow scripts need access to Jenkins credentials in order to execute deployments, interact with web services, etc.

      Ideally, a list of all credentials available to the current build would be exposed to workflow in the same way as 'env', allowing the script to choose the correct credential using fluent Groovy, for example:

      def token = credentials.find { it -> it.domain.name == 'HipChat.com' && it.username == 'bot' }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                akbertram Alexander Bertram
                Reporter:
                akbertram Alexander Bertram
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: