1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Added basic Jenkins pipeline

This commit is contained in:
Oliver Nocon
2017-11-15 10:39:14 +01:00
parent 4181b5ea72
commit e2829eeeea

20
Jenkinsfile vendored Normal file
View File

@@ -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: 'k.arnold@sap.com,marcus.holl@sap.com,oliver.nocon@sap.com'
}
}