-
Notifications
You must be signed in to change notification settings - Fork 420
Expand file tree
/
Copy pathconfig.xml
More file actions
27 lines (27 loc) · 1.29 KB
/
config.xml
File metadata and controls
27 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version='1.0' encoding='UTF-8'?>
<flow-definition plugin="workflow-job@2.9">
<actions/>
<description>JENKINS-34276 verification; run after docker-workflow #1</description>
<keepDependencies>false</keepDependencies>
<properties>
<org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
<triggers/>
</org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.23">
<script>node {
echo 'Start with an empty local cache:'
sh '(docker images -q examplecorp/spring-petclinic; docker images -q localhost/examplecorp/spring-petclinic) | xargs docker rmi --no-prune=true --force || :'
docker.withRegistry('https://localhost/', 'docker-registry-login') {
echo 'Missing initially, should pull and get latest tag:'
docker.image('examplecorp/spring-petclinic').inside {
sh 'ls -l /tomcat7/webapps/petclinic.war'
}
echo 'This time it should be in local cache and not need to pull:'
docker.image('examplecorp/spring-petclinic').inside {}
}
}</script>
<sandbox>true</sandbox>
</definition>
<triggers/>
</flow-definition>