Skip to content

Instantly share code, notes, and snippets.

@michaelneale
Created August 31, 2016 06:46
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 michaelneale/a3b1b5a2b9102bb1151251395920de4b to your computer and use it in GitHub Desktop.
Save michaelneale/a3b1b5a2b9102bb1151251395920de4b to your computer and use it in GitHub Desktop.
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