-
Improvement
-
Resolution: Won't Fix
-
Major
-
None
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' }
- is related to
-
JENKINS-26051 Workflow integration for Credentials Binding
- Resolved
-
JENKINS-26099 Configurable ID for Credentials
- Resolved
- links to