Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created January 5, 2016 21:50
Show Gist options
  • Save dileeph/00706a7e8f990add1aab to your computer and use it in GitHub Desktop.
Save dileeph/00706a7e8f990add1aab to your computer and use it in GitHub Desktop.
jenkins workflow using 'stash' to pass files between two docker containers
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