Sign inSign up

heliostech/jenkins-slave-java

By heliostech

•Updated over 8 years ago

Jenkins slave configured with Java and Maven.

Image
1

3.5K

heliostech/jenkins-slave-java repository overview

⁠Jenkins slave with Java development environment

Start a Jenkins swarm⁠ slave into docker with java jdk and maven.

⁠Start a slave

docker run -d heliostech/jenkins-slave-java:openjdk8 -master http://jenkins-server/ -username JENKINS_USER -password JENKINS_USER_KEY -executors 2 -labels "linux java openjdk8"

⁠Configure the job to use the slave

On the jenkins job configuration page, check the box "Restrict where this project can be run" and set the "Label expression" to one label assigned to the node (e.g., linunx && openjdk8)

⁠Inject docker environment to the job

You need the plugin EnvInject Plugin⁠ installed on the jenkins master.

Select "Inject environment variables to the build process" and set the "Properties File Path" to /etc/docker.properties

⁠Available Options

Display the available options with the following command:

docker run -it --rm heliostech/jenkins-slave-java -help

⁠Credits

This container is part of DevStack⁠, a project to facilitate DevOps work with continuous integration and deployment environment ready to use.

Tag summary

Content type

Image

Digest

Size

310.7 MB

Last updated

over 9 years ago

docker pull heliostech/jenkins-slave-java