From 4bc3753ba7a87ab1f429bf6d5c3ec0001c9546b4 Mon Sep 17 00:00:00 2001 From: Artem Eroshenko Date: Sun, 7 May 2017 17:12:44 +0300 Subject: [PATCH] migrate to jenkins pipeline (via #109) --- Jenkinsfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8a521c1 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +pipeline { + agent { + label 'java' + } + tools { + maven 'default' + } + + stages { + stage("Build") { + steps { + sh 'mvn -Dmaven.test.failure.ignore=true clean install' + } + } + } + post { + always { + deleteDir() + } + + failure { + slackSend message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} failed (<${env.BUILD_URL}|Open>)", + color: 'danger', teamDomain: 'qameta', channel: 'allure', tokenCredentialId: 'allure-channel' + } + } +} \ No newline at end of file