Skip to content
Snippets Groups Projects
Commit 94dc1cb5 authored by OZGCloud's avatar OZGCloud
Browse files

call of sonar qube in try-catch block to prevent build breaks

parent 3b18d3c0
No related branches found
No related tags found
No related merge requests found
...@@ -40,11 +40,15 @@ pipeline { ...@@ -40,11 +40,15 @@ pipeline {
sh 'npm run ci-test' sh 'npm run ci-test'
try {
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'npm run ci-sonar' sh 'npm run ci-sonar'
} }
} }
} catch (Exception e) {
unstable("SonarQube failed")
}
} }
} }
} }
...@@ -68,6 +72,7 @@ pipeline { ...@@ -68,6 +72,7 @@ pipeline {
} }
script { script {
try {
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
dir('goofy-server'){ dir('goofy-server'){
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
...@@ -75,6 +80,9 @@ pipeline { ...@@ -75,6 +80,9 @@ pipeline {
} }
} }
} }
} catch (Exception e) {
unstable("SonarQube failed")
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment