Skip to content

gilesejb/docker-ssh-slave

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins SSH Agent Docker image

jenkinsci/ssh-slave

A Jenkins agent using SSH to establish connection.

See Jenkins Distributed builds for more info.

Running

To run a Docker container

docker run jenkinsci/ssh-slave "<public key>"

You'll then be able to connect this agent using ssh-slaves-plugin as "jenkins" with the matching private key.

How to use this image with Docker Plugin

To use this image with Docker Plugin, you need to pass the public SSH key using environment variable JENKINS_SLAVE_SSH_PUBKEY and not as a startup argument.

In Environment field of the Docker Template (advanced section), just add:

JENKINS_SLAVE_SSH_PUBKEY=<YOUR PUBLIC SSH KEY HERE>

Don't put quotes around the public key. You should be all set.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 78.1%
  • Dockerfile 21.9%