Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

NicatorBa/JenkinsDockerSwarmClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-docker-swarm-client

Jenkins client with support for docker swarm.

1. Preparation

on Jenkins master:

on the server running Jenkins:

  • add port for "JNLP agents" to your system firewall
  • initialize docker swarm

2. Usage

2.1 Docker swarm (legacy)

docker service create \
 --name jenkins-swarm-client \
 -e LABELS=swarm-client \
 -e MASTER=http://127.0.0.1:80 \
 -e USER_NAME=jenkins \
 -e USER_PASSWORD=jenkins_pw \
 --mount "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock" \
 nicatorba/jenkins-docker-swarm-client

Environment variables

Environment variable Default value Description
LABELS required Whitespace-separated list of lables to be assigned for this client
JENKINS_URL required The complete target Jenkins URL
USER_NAME required The Jenkins username for authentication
USER_PASSWORD required The Jenkins user password
CLIENT_NAME optional Name of the client
JENKINS_HOME /var/jenkins Directory where Jenkins place files
EXECUTORS 1 Number of executors

About

Jenkins client with support for docker swarm

Resources

License

Stars

Watchers

Forks