How to use SSH-credentials?

3.1k views Asked by At

I try to convert a "standard" build to a workflow build. In the the original build we use the SSH-Agent plugin to access SSH-keys we need for deploying the artifacts in the builds shell-script. How can I do something like this in workflow? Is this even possible?

1

There are 1 answers

3
Jesse Glick On

Pending JENKINS-28689 this would be tricky. You could save the private key as a Secret Text credentials item (pending JENKINS-28399), then use the withCredentials step (Credentials Binding plugin) to get a variable with a file location of a copy of the private key, and then authenticate with that.