Created
January 31, 2017 21:13
-
-
Save antrew/ae911936bbb5f80c226614aba39e5052 to your computer and use it in GitHub Desktop.
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
#!groovy | |
def handleCheckout = { | |
sh "echo 'Checking out given branch...'" | |
checkout scm | |
} | |
node() { | |
stage('setup') { | |
sh "env | sort" | |
handleCheckout() | |
sh "git branch -vv" | |
} | |
stage('test') { | |
sh "echo 'Throw in some tests here'" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment