jenkins-job-builder/tests/wrappers/fixtures/docker-custom-build-env002.xml
Timon Wong f22d7b89eb Add Docker Custom Build Environment Plugin support
This build wrapper uses the "Cloudbees Docker Custom Build Environment
plugin". It allows to define build environment using either a Dockerfile
stored in project SCM, or a docker image from docker registry directly.

Change-Id: I11f94a10b8a06bd4aa61a817c21a1ee1dd885072
2016-01-21 23:27:51 +00:00

34 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<buildWrappers>
<com.cloudbees.jenkins.plugins.okidocki.DockerBuildWrapper plugin="docker-custom-build-environment">
<selector class="com.cloudbees.jenkins.plugins.okidocki.DockerfileImageSelector">
<contextPath>./docker</contextPath>
<dockerfile>Dockerfile</dockerfile>
</selector>
<dockerInstallation>Custom Docker</dockerInstallation>
<dockerHost plugin="docker-commons">
<uri>tcp://127.0.0.1:1234</uri>
<credentialsId>myCredentials</credentialsId>
</dockerHost>
<dockerRegistryCredentials>myRegistryCredentials</dockerRegistryCredentials>
<volumes>
<com.cloudbees.jenkins.plugins.okidocki.Volume>
<hostPath>/hostJenkins</hostPath>
<path>/jenkins</path>
</com.cloudbees.jenkins.plugins.okidocki.Volume>
<com.cloudbees.jenkins.plugins.okidocki.Volume>
<hostPath>/my-volume</hostPath>
<path>/my-volume</path>
</com.cloudbees.jenkins.plugins.okidocki.Volume>
</volumes>
<forcePull>false</forcePull>
<privileged>false</privileged>
<verbose>false</verbose>
<group/>
<command>/bin/cat</command>
<net>bridge</net>
</com.cloudbees.jenkins.plugins.okidocki.DockerBuildWrapper>
</buildWrappers>
</project>