Created
December 7, 2016 18:29
-
-
Save mattstep/0f3abde47f828b20022c829f73fc24c7 to your computer and use it in GitHub Desktop.
Sample Jenkinsfile
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
timestamps { | |
node('my-docker-agent-template') { | |
withDir('work') { | |
checkout scm | |
withEnv(["JAVA_HOME=${tool 'jdk8' }", | |
"PATH+MAVEN=${tool 'maven3'}/bin:${env.JAVA_HOME}/bin"]) { | |
sh 'mvn clean install' | |
} | |
junit 'target/surefire-reports/**/*.xml' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment