Jenkins SSH构建代理Docker镜像,用于通过SSH建立连接的Jenkins代理,支持分布式构建,可作为Jenkins从节点接收构建任务。
Jenkins SSH Build Agent Docker image
https://jenkins.io agent using SSH to establish connection.
See https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds for more info.
Running
To run a Docker container
bashdocker run jenkins/ssh-slave "<public key>"
You'll then be able to connect this agent using the https://plugins.jenkins.io/ssh-slaves as "jenkins" with the matching private key.
How to use this image with Docker Plugin
To use this image with https://wiki.jenkins-ci.org/display/JENKINS/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 https://github.com/jenkinsci/docker-ssh-slave/releases/latest. 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.
jenkinsci 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 ssh-slave 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务