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 { } } } -} +}