-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Currently we need to use
withCredentials
to map the credentials to all the steps, it would nice to have credentials store integrated to read the credentials from store.
[JENKINS-55817] Support Credentials store for SSH Steps
Description | Original: Currently we need to use `withCredentials` to map the credentials to all the steps, it would nice to have credentials store integrated to read the credentials from store. |
New:
Currently we need to use {code:java} withCredentials {code} to map the credentials to all the steps, it would nice to have credentials store integrated to read the credentials from store. |
Link | New: This issue blocks SECURITY-1259 [ SECURITY-1259 ] |
Attachment | New: Screenshot 2024-02-28 at 16.51.56.png [ 62148 ] |
Had the same issue. As a workaround, I'd created a function like:
Set the environment variables:
And then used the function in the steps with corresponding values like:
Works fine for me.
