Created
January 5, 2016 21:50
-
-
Save dileeph/00706a7e8f990add1aab to your computer and use it in GitHub Desktop.
jenkins workflow using 'stash' to pass files between two docker containers
This file contains hidden or 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
node{ | |
docker.image('buildpack-deps:jessie-scm').inside { | |
sh "echo 'hello' >> a.txt" | |
stash includes: 'a.txt', name: 'pom' | |
} | |
docker.image('buildpack-deps:jessie-scm').inside { | |
unstash 'pom' | |
sh "cat a.txt" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment