diff --git a/Jenkinsfile b/Jenkinsfile index bb07e6042..e05d54e06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,14 +54,14 @@ pipeline { } } } - } - stage('Code Quality') { - when { - branch 'master' - } - steps { - withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) { - sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}' + stage('Code Quality') { + when { + branch 'master' + } + steps { + withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) { + sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}' + } } } }