Skip to content

Instantly share code, notes, and snippets.

@Flow86
Last active July 28, 2016 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Flow86/f9913c2006a2ff43577569355bec82c4 to your computer and use it in GitHub Desktop.
Save Flow86/f9913c2006a2ff43577569355bec82c4 to your computer and use it in GitHub Desktop.
node('master') {
stage name:"Checkout", concurrency:1
checkout scm
sh """set -x
if [ -d .git ] ; then
echo "checkout done"
exit 0
else
echo "checkout anywhere but not here"
exit 1
fi
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment