-
-
Save coralogix-resources/0d9e5ab17157465e6570b43e049054dd 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 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