Skip to content

carlossg/jenkins-slave-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Jenkins slave

Moved to jenkinsci/jnlp-slave

csanchez/jenkins-slave

A Jenkins slave using JNLP.

See Jenkins Distributed builds for more info.

For a container with swarm plugin see csanchez/jenkins-swarm-slave

Running

To run a Docker container

docker run csanchez/jenkins-slave -url http://jenkins-server:port <secret> <slave name>

If the command line options are not set it will try to use environment variables, including Kubernetes set variables for services jenkins and jenkins-slave.

  • JENKINS_URL: url for the Jenkins server
  • JENKINS_SERVICE_HOST and JENKINS_SERVICE_PORT: will be used to compose the url if the previous is not present.
  • JENKINS_TUNNEL: (HOST:PORT) connect to this slave host and port instead of Jenkins server
  • JENKINS_SLAVE_SERVICE_HOST and JENKINS_SLAVE_SERVICE_PORT: will be used to compose the tunnel argument if the previous is not present.

Building

docker build -t csanchez/jenkins-slave .

About

Jenkins slave to run in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages