Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created September 5, 2016 09:05
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 lordofthejars/be8c2384db1ce5207f0336e690e3367c to your computer and use it in GitHub Desktop.
Save lordofthejars/be8c2384db1ce5207f0336e690e3367c to your computer and use it in GitHub Desktop.
node {
stage('Checkout') {
checkout scm
}
def gradle = load 'jenkins/gradle.groovy'
stage ('Build') {
gradle.cleanAndCompile()
}
stage ('Integration Tests') {
gradle.test()
junit '**/build/test-results/*.xml'
}
stage ('Create Artifacts') {
gradle.assembleApplication()
docker.build("app/wildflyexample:${env.BUILD_NUMBER}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment