Skip to content

Commit

Permalink
Merge pull request #256 from fpapon/SONARCFG
Browse files Browse the repository at this point in the history
Add Sonarqube quality check
  • Loading branch information
fpapon authored Oct 3, 2020
2 parents df227ac + f39530e commit 3008045
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* limitations under the License.
*
*/

pipeline {

agent {
Expand Down Expand Up @@ -89,6 +88,15 @@ pipeline {
}
}

stage('Code Quality') {
steps {
echo 'Checking Code Quality on SonarCloud'
withCredentials([string(credentialsId: 'sonarcloud-key-apache-shiro', variable: 'SONAR_TOKEN')]) {
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}'
}
}
}

stage('Generate doc') {
when {
expression {
Expand Down

0 comments on commit 3008045

Please sign in to comment.