2

I'm trying to configure an SSH key on my Jenkins instance with the SSH Agent Plugin. Jenkins is using Kubernetes containers as workers. My worker container image is alpine based, and just installs ansible and sshd. If I run a container locally, I am able to configure my keys and connect to my ssh servers with no issue.

If I try to configure ssh-agent through Jenkins, however, I get an error when trying to run anything related to ssh-agent:

mkdtemp: private socket dir: No such file or directory

I have tried running chmod 1777 /tmp but that has not helped. The container user is root (I know this is an issue, I am going to add a user once ssh works).

The JNLP container is able to SSH correctly, just my custom image cannot. So far it seems to be an odd permissions issue.

What could be causing Jenkins to have this error when the local image has no such problem?

jackwise
  • 259
  • 1
  • 3
  • 9

0 Answers0