From 13dad459ba793274d97885f8a2a0865979ad38db Mon Sep 17 00:00:00 2001 From: valentin_lechner Date: Thu, 30 Jan 2020 17:05:04 +0100 Subject: [PATCH] Fixing Jenkinsfile --- .scannerwork/.sonar_lock | 0 .scannerwork/report-task.txt | 6 ------ Jenkinsfile | 17 +++++++++-------- 3 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 .scannerwork/.sonar_lock delete mode 100644 .scannerwork/report-task.txt diff --git a/.scannerwork/.sonar_lock b/.scannerwork/.sonar_lock deleted file mode 100644 index e69de29..0000000 diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt deleted file mode 100644 index 83b099c..0000000 --- a/.scannerwork/report-task.txt +++ /dev/null @@ -1,6 +0,0 @@ -projectKey=8008135-dev -serverUrl=http://localhost:9000 -serverVersion=7.9.2.30863 -dashboardUrl=http://localhost:9000/dashboard?id=8008135-dev -ceTaskId=AW_3GjJbtzrbd5O-L5Zw -ceTaskUrl=http://localhost:9000/api/ce/task?id=AW_3GjJbtzrbd5O-L5Zw diff --git a/Jenkinsfile b/Jenkinsfile index 9efc871..6f150e7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,15 +8,16 @@ pipeline { checkout scm } - stage ('compile') { - sh 'make' - } + stage ('compile') { + sh 'make' + } - stage ('deploySONAR') { - sh 'sonar-scanner' - } + stage ('deploySONAR') { + sh 'sonar-scanner' + } + } } - post { + post { unstable { script { notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log") @@ -33,4 +34,4 @@ pipeline { } } } -} +}