Created
April 29, 2018 18:14
-
-
Save obcode/a5bcd4a08be2bdc5069a060deffefd58 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
sh 'sh gradlew clean' | |
sh 'sh gradlew compileJava' | |
} | |
} | |
stage('Checkstyle') { | |
steps { | |
sh 'sh gradlew checkstyleMain' | |
} | |
} | |
stage('Test') { | |
steps { | |
timeout(20) { | |
sh 'sh gradlew test' | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment