On Mon, Sep 17, 2018 at 4:51 AM Arianrhod <[email protected]> wrote:
> Thanks David, I'm sure you're probably right but I've found so many > different versions of what the 'simple' answer is that I have no real idea > of the correct syntax for the command. Referencing credentials that are > already stored within the Jenkins store, for example; some say this is > necessary, some say not, and all have different angles on how this should > be specified. Even the plugin page isn't really clear on the correct > syntax, hence my question here. > Looking at some old pipeline code of mine, it seems pretty clear that the "sshagent" wrapper is what you need to use. That takes a "credentials" property that refers to the credentials object stored in Jenkins, referring to the private key. Within that block, you can have a "sh" step calling ssh, which doesn't have to specify any credentials. > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/792f625d-75a5-458e-93b7-4a4233795c92%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/792f625d-75a5-458e-93b7-4a4233795c92%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA5t8Vqq6bfxg0_a-hudWd0UOkg3opzDC4%2BC_nfO-RSVfx7R6A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
