Skip to content

Latest commit

 

History

History
 
 

jenkins-slave-mvn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Jenkins Maven Slave

This slave extends the Jenkins Maven Slave shipped with OpenShift to provide a settings.xml that proxies all dependencies through a nexus server deployed to the same namespace. This type of setup makes sense in a Lab setting, such as Open Innovation Labs CI/CD environment. For most customer engagements, you'll to update this proxy/password to use an central, enterprise artifact repo which is unlikely to be deployed in the same namespace. Or simply use the OpenShift supplied base image directly and provide artifact repository info in the application build.

Build in OpenShift

oc process -f ../../.openshift/templates/jenkins-slave-generic-template.yml \
    -p NAME=jenkins-slave-mvn \
    -p SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-mvn \
    -p DOCKERFILE_PATH=Dockerfile \
    | oc create -f -

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