jenkins-job-builder/tests/builders/fixtures/build-publish-docker-image-full.xml
tanhengyeow 039c860dc2
Add support for "Build / Publish Docker Image"
Change-Id: Iac9ffcdcb4312818d53e1da9be92ecdbb84c8cc1
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-09-24 20:16:21 +05:30

20 lines
757 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher plugin="docker-plugin">
<fromRegistry plugin="docker-commons">
<url>Docker registry URL</url>
</fromRegistry>
<tags>
<string>Image string</string>
</tags>
<dockerFileDirectory>Directory for Dockerfile</dockerFileDirectory>
<pushOnSuccess>true</pushOnSuccess>
<pushCredentialsId>71e4f29c-162b-40d0-85d9-3ddfba2911a0</pushCredentialsId>
<cleanImages>true</cleanImages>
<cleanupWithJenkinsJobDelete>true</cleanupWithJenkinsJobDelete>
<cloud>cloud</cloud>
</com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher>
</builders>
</project>