From b3976ab475e1b6be9a21fd745f28349ca05b0fcf Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 24 Feb 2021 16:25:22 +0100 Subject: [PATCH] fix jenkins --- Jenkinsfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a8b1efd39a..01ddc347f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -63,13 +63,15 @@ pipeline { sh 'mvn --version' sh 'mvn -s $MAVEN_SETTINGS -pl -goofy-client clean install' - if (env.BRANCH_NAME == 'master') { - dir('goofy-server'){ - withSonarQubeEnv('sonarqube'){ - sh 'mvn sonar:sonar' + script { + if (env.BRANCH_NAME == 'master') { + dir('goofy-server'){ + withSonarQubeEnv('sonarqube'){ + sh 'mvn sonar:sonar' + } } - } - } + } + } } } } -- GitLab