Skip to content

jbontech/docker-ssh-slave

 
 

Repository files navigation

Jenkins SSH Build Agent Docker image

Docker Stars Docker Pulls [GitHub release

A Jenkins agent using SSH to establish connection.

See Jenkins Distributed builds for more info.

Running

To run a Docker container

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

You'll then be able to connect this agent using the SSH Build Agents 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.

Changelog

See GitHub Releases. Note that the changelogs and release tags were introduced in Dec 2019, and there is no entries for previous patches. Please consult with the commit history if needed.

About

Jenkins SSH Build Agent Docker image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 50.4%
  • PowerShell 34.6%
  • Dockerfile 11.2%
  • Makefile 3.8%