From c09913b1734025c271eaba75aa95886be53d5002 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 2 Apr 2024 15:12:30 +0200
Subject: [PATCH] remove "mark as unstable" on sonarqube

---
 Jenkinsfile | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 44c34113a1..882add3efb 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'
                         }
                     }
                 }
-- 
GitLab