Oh, and I tried running this with the "sshagent" block commented out, and
the exception does not occur (and nothing useful gets done, of course), so
it's definitely coming from that, even though the stacktrace doesn't give
me any hint of where it's happening in the script.
On Monday, December 1
In a Jenkinsfile, I'm trying to scp a zip file to a remote host, and ssh
some commands to unpack it when it gets there.
I managed to add a "SSH username with private key" credential, and I can
see it in the "Credentials" list. I'm referencing that uuid in my
"sshagent" block.
When I run the j