Skip to content

Commit

Permalink
Create jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nirkoren authored Oct 10, 2019
1 parent 1bf8765 commit 7ca56ee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
node {
def mvnHome
stage('Preparation') {
git 'https://github.com/nirkoren/jaxlondon.git'
mvnHome = tool 'M3'
}
stage('Build') {
// Run the maven build
withEnv(["MVN_HOME=$mvnHome"]) {
if (isUnix()) {
sh '"$MVN_HOME/bin/mvn" clean install -Pci'
} else {
bat(/"%MVN_HOME%\bin\mvn" -Dmaven.test.failure.ignore clean package/)
}
}
}
stage('Results') {
junit '**/target/surefire-reports/TEST-*.xml'
}
}

0 comments on commit 7ca56ee

Please sign in to comment.