diff --git a/Jenkinsfile b/Jenkinsfile index 44c34113a1aebaf8ba252f30bf6bd3b9068c9b0a..882add3efb917a596fc38b9a8d6f81b59d66504c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -64,16 +64,12 @@ pipeline { else { sh 'npm run ci-build' } - try { - if (isMasterBranch()) { - withSonarQubeEnv('sonarqube-ozg-sh'){ - sh 'npm run ci-sonar' - } - } else { - sh 'npm run ci-test' + if (isMasterBranch()) { + withSonarQubeEnv('sonarqube-ozg-sh'){ + sh 'npm run ci-sonar' } - } catch (Exception e) { - unstable("SonarQube failed") + } else { + sh 'npm run ci-test' } } }