Created
August 31, 2016 06:46
-
-
Save michaelneale/a3b1b5a2b9102bb1151251395920de4b 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
pipeline { | |
agent docker:'cloudbees/java-build-tools' | |
stages { | |
stage ('build') { | |
//deleteDir | |
sh "mvn clean install -B -DcleanNode -Dmaven.test.failure.ignore" | |
sh "node checkdeps.js" | |
} | |
} | |
postBuild { | |
always { | |
junit "**/target/surefire-reports/TEST-*.xml" | |
archive "*/target/*.hpi" | |
//deleteDir | |
} | |
} | |
notifications { | |
success { | |
hipchatSend message: "${env.JOB_NAME} #${env.BUILD_NUMBER} has passed", color: 'GREEN' | |
} | |
failure { | |
hipchatSend message: "${env.JOB_NAME} #${env.BUILD_NUMBER} is BROKEN", color: 'RED' | |
} | |
unstable { | |
hipchatSend message: "${env.JOB_NAME} #${env.BUILD_NUMBER} has failing tests", color: 'YELLOW' | |
} | |
} | |
environment { | |
GIT_COMMITTER_EMAIL="me@hatescake.com" | |
GIT_COMMITTER_NAME="Hates" | |
GIT_AUTHOR_NAME="Cake" | |
GIT_AUTHOR_EMAIL="hates@cake.com" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment