From 1dfb5c4f7803cb3b35b769245ef206e787c1d13d Mon Sep 17 00:00:00 2001 From: Valentin Lechner Date: Fri, 31 Jan 2020 00:07:40 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fd2cad7..7c99dc6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,24 +19,24 @@ pipeline { stage('deploySONAR'){ steps{ - sh '/var/jenkins_home/sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner' + sh 'sonar-scanner' } } } post { unstable { script { - notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log") + //notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log") } } failure { script { - notifier.sendMail("Error while run CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]", "**/*.log") + //notifier.sendMail("Error while run CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]", "**/*.log") } } fixed { script { - notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is stable again :-)", "**/*.log") + //notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is stable again :-)", "**/*.log") } } }