Last active
November 16, 2020 02:35
-
-
Save solvingj/caac293881e510c2925df6e508d7f5b4 to your computer and use it in GitHub Desktop.
Jenkinsfile stash unstash
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
pipeline{ | |
stages { | |
stage('Checkout') { | |
steps { | |
checkout([ | |
$class: '<repo_scm_type>', | |
locations: [[ | |
credentialsId: '<repo_credentials>', | |
local: '.', | |
remote: '<repo_url>']], | |
workspaceUpdater: [$class: 'UpdateUpdater']]) | |
stash includes: '*', name: 'repo_root' | |
} | |
} | |
stage('Build'){ | |
parallel { | |
stage('<stage_name>'){ | |
steps { | |
unstash 'repo_root' | |
sh 'build.sh' | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is a typo. missing ":" after name in stash includes: '*', name 'repo_root'