diff --git a/Jenkinsfile b/Jenkinsfile
index 51c563e90d457d9b33b0d414f7cb300e503b01a2..6b8510a79431753fe9c46cefc39df0c4212bd8a1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -89,10 +89,10 @@ pipeline {
 		}
 
         stage('Sonar Checks') {
+            when {
+                branch 'master'
+            }
         	steps {
-                when {
-                    branch 'master'
-                }
         	    script {
                     FAILED_STAGE=env.STAGE_NAME