From 3f6020e1e8f1fa1c11aef94ed17cc6d4ae66e1df Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sun, 9 Feb 2020 10:32:45 +0100 Subject: [PATCH] Moves Code Quality stage to the end as it uses SNAPSHOT --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e3ff50776..0c2f6e53f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,16 +35,6 @@ 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('Build Source & JavaDoc') { when { branch 'master' @@ -66,6 +56,16 @@ 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}' + } + } + } } post { // If this build failed, send an email to the list.