diff --git a/Jenkinsfile b/Jenkinsfile index 44694f8..9c6db5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,6 +87,16 @@ EOF } } // stage: Maven Build + stage('SonarQube Analyse') { + steps { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + withSonarQubeEnv('SonarQube') { + sh "mvn sonar:sonar -Drevision=${env.EFFECTIVE_MAJOR}.${env.EFFECTIVE_MINOR}.${env.BUILD_NUMBER} -Dsonar.projectKey=pdf-umbenenner -Dsonar.projectName='PDF KI Renamer'" + } + } + } + } // stage: SonarQube Analyse + stage('Publish PIT Coverage') { steps { recordCoverage(