Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 994 Bytes

File metadata and controls

24 lines (20 loc) · 994 Bytes

jenkins-agent-gradle

Provides a docker image of the gradle runtime for use as a Jenkins agent.

Build

docker build -t jenkins-agent-gradle .

Build in OpenShift

oc process -f ../../.openshift/templates/jenkins-agent-generic-template.yml \
    -p NAME=jenkins-agent-gradle \
    -p SOURCE_CONTEXT_DIR=jenkins-agents/jenkins-agent-gradle \
    | oc create -f -

For all params see the list in the ../../.openshift/templates/jenkins-agent-generic-template.yml or run oc process --parameters -f ../../.openshift/templates/jenkins-agent-generic-template.yml.

Run

For local running and experimentation run docker run -i -t --rm jenkins-agent-gradle /bin/bash and have a play once inside the container.

Jenkins Running

Add a new Kubernetes Container template called jenkins-agent-gradle and specify this as the node when running builds. Set the version of Java you want to use and away you go!

export JAVA_HOME=/path/to/java/version
gradle clean build