Skip to content

Instantly share code, notes, and snippets.

@coralogix-resources
Created August 19, 2020 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save coralogix-resources/0d9e5ab17157465e6570b43e049054dd to your computer and use it in GitHub Desktop.
Save coralogix-resources/0d9e5ab17157465e6570b43e049054dd to your computer and use it in GitHub Desktop.
pipeline {
agent any
stages {
stage('Build') {
steps {
git 'https://github.com/vdespa-collab/java-rest-api-calculator.git'
sh './mvnw clean compile'
// bat '.\\mvnw clean compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
// bat '.\\mvnw test'
}
post {
always {
junit '**/target/surefire-reports/TEST-*.xml'
}
}
}
stage('Publish') {
steps {
sh './mvnw package'
// bat '.\\mvnw package'
}
post {
success {
archiveArtifacts 'target/*.jar'
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment