From e2829eeeea95d8d08c38bc2018bc2eac4b5322d9 Mon Sep 17 00:00:00 2001 From: Oliver Nocon Date: Wed, 15 Nov 2017 10:39:14 +0100 Subject: [PATCH] Added basic Jenkins pipeline --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..e07f101214 --- /dev/null +++ b/Jenkinsfile @@ -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' + } +} \ No newline at end of file