Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-34276] Allow Image.inside to run with either a local o…
…r registry-prefixed name.
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
org.jenkins-ci.plugins:authentication-tokens:1.3 | ||
org.jenkins-ci.plugins:docker-commons:1.5 | ||
org.jenkins-ci.plugins:docker-workflow:1.9 | ||
org.jenkins-ci.plugins:docker-workflow:1.10-SNAPSHOT | ||
org.jenkins-ci.plugins.icon-shim:icon-shim:2.0.3 | ||
org.jenkins-ci.plugins:xvnc:1.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters