Skip to content

Commit

Permalink
Merge pull request #7 from OliverNocon/master
Browse files Browse the repository at this point in the history
Added basic Jenkins pipeline
  • Loading branch information
marcusholl authored Nov 15, 2017
2 parents 4181b5e + e2829ee commit ec75fca
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 {
try {
lock(resource: "sap-jenkins-library/10", inversePrecedence: true) {
milestone 10
deleteDir()
stage ('Checkout'){
checkout scm
}
stage ('Test') {
sh "mvn clean test --batch-mode"
}
}
} catch (Throwable err) {
echo "Error occured: ${err}"
currentBuild.result = 'FAILURE'
throw err
} finally {
mail subject: '[Build failed] SAP/jenkins-library', body: '', to: '[email protected],[email protected],[email protected]'
}
}

0 comments on commit ec75fca

Please sign in to comment.