You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2020/10/04 17:00:40 UTC
[karaf] branch master updated: Add quality step with sonarcloud in
jenkins file
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 22f0f4a Add quality step with sonarcloud in jenkins file
new 5911ff2 Merge pull request #1212 from fpapon/sonar
22f0f4a is described below
commit 22f0f4aefb05b2d20e52e36e7ca5b234cf4d6f2a
Author: Francois Papon <fp...@apache.org>
AuthorDate: Sun Oct 4 14:07:45 2020 +0200
Add quality step with sonarcloud in jenkins file
---
Jenkinsfile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 657a99a..cab5a84 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -89,6 +89,15 @@ pipeline {
}
}
+ stage('Code Quality') {
+ steps {
+ echo 'Checking Code Quality on SonarCloud'
+ withCredentials([string(credentialsId: 'sonarcloud-key-apache-karaf', variable: 'SONAR_TOKEN')]) {
+ sh 'mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_karaf -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.login=${SONAR_TOKEN}'
+ }
+ }
+ }
+
stage('Deploy') {
when {
expression {