Skip to content

Commit be4f526

Browse files
authored
Merge pull request #258 from fpapon/sonar
Move sonar build step to Java 11 pipeline
2 parents 3008045 + aa2aced commit be4f526

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Jenkinsfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ pipeline {
8888
}
8989
}
9090

91-
stage('Code Quality') {
92-
steps {
93-
echo 'Checking Code Quality on SonarCloud'
94-
withCredentials([string(credentialsId: 'sonarcloud-key-apache-shiro', variable: 'SONAR_TOKEN')]) {
95-
sh 'mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_shiro -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.login=${SONAR_TOKEN}'
96-
}
97-
}
98-
}
99-
10091
stage('Generate doc') {
10192
when {
10293
expression {

Jenkinsfile-jdk11

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ pipeline {
8989
}
9090
}
9191

92+
stage('Code Quality') {
93+
steps {
94+
echo 'Checking Code Quality on SonarCloud'
95+
withCredentials([string(credentialsId: 'sonarcloud-key-apache-shiro', variable: 'SONAR_TOKEN')]) {
96+
sh 'mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_shiro -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.login=${SONAR_TOKEN}'
97+
}
98+
}
99+
}
100+
92101
stage('Generate doc') {
93102
when {
94103
expression {

0 commit comments

Comments
 (0)