diff --git a/Jenkinsfile b/Jenkinsfile
index bd9d67aa1aa331c6984559c8b4ee5122eecaa095..79d9606a896daf044341e6232ba191cb89c3a142 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -64,15 +64,14 @@ pipeline {
                         else {
                             sh 'npm run ci-build'
                         }
-
-                        sh 'npm run ci-test'
-
     					try {
 	                        if (isMasterBranch()) {
 	                            withSonarQubeEnv('sonarqube-ozg-sh'){
 	                                sh 'npm run ci-sonar'
 	                            }
-	                        }
+	                        } else {
+                                sh 'npm run ci-test'
+                            }
                         } catch (Exception e) {
                             unstable("SonarQube failed")
                         }