jenkins-job-builder/tests/wrappers/fixtures/docker-custom-build-env002.xml
tanhengyeow 55310657f0
docker-custom-build-env: Add support for new options
Change-Id: I9482d2e3c98cf8058d5689cd688b8cc489bbb016
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-09-21 18:38:31 +05:30

36 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>
<memory/>
<cpu/>
</com.cloudbees.jenkins.plugins.okidocki.DockerBuildWrapper>
</buildWrappers>
</project>