meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sw:jenkins:docker [2019/02/19 12:47] niziak |
sw:jenkins:docker [2019/02/19 13:11] (current) niziak |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds]] | [[https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds]] | ||
+ | |||
+ | https://hub.docker.com/r/vipconsult/jenkins-swarm-agent | ||
+ | |||
====== SWARM Plugin ====== | ====== SWARM Plugin ====== | ||
Line 8: | Line 11: | ||
Deprecated [[https://hub.docker.com/r/csanchez/jenkins-slave/|jenkins-slave]] moved to [[https://hub.docker.com/r/jenkinsci/jnlp-slave/|jnlp-slave]] | Deprecated [[https://hub.docker.com/r/csanchez/jenkins-slave/|jenkins-slave]] moved to [[https://hub.docker.com/r/jenkinsci/jnlp-slave/|jnlp-slave]] | ||
- | But correct Docker image is **jenkins/jnlp-slave** | + | But correct Docker image is **jenkins/jnlp-slave**, anyway it is not working as seperate slave (withotu swarm) |
- | It can be used separately (without SWARM): | + | It can be used separately (without SWARM) |
+ | |||
+ | |||
+ | |||
+ | ====== Docker slave without swarm ====== | ||
+ | |||
+ | ==== Working ==== | ||
* create Jenkins user with agent manipulation permision | * create Jenkins user with agent manipulation permision | ||
- | * create docker secret: | + | * <code bash>docker run csanchez/jenkins-swarm-slave -master http://192.168.0.231:3002 -username docker -password docker000 -executors 1 -name my_slave -labels linux</code> |
- | * <code bash></code> | + | |
+ | ==== Not working ==== | ||
+ | |||
+ | [[https://hub.docker.com/r/csanchez/jenkins-slave/]] | ||
+ | Only JNLP and JNLP2 supported - old. | ||
+ | |||
+ | |||
+ | ==== Not working ==== | ||
+ | |||
+ | What arguments are expected as <secret> and <name> ? | ||
+ | |||
+ | <code bash>docker run jenkins/jnlp-slave -url http://192.168.0.231:3002 -workDir=/home/jenkins/agent docker default</code> | ||
+ | |||
+ | [[https://hub.docker.com/r/jenkinsci/jnlp-slave/|jnlp-slave]] Docker image: **jenkins/jnlp-slave** is not working: <code text>java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Unknown client name: default</code> |