This is an automated email from the ASF dual-hosted git repository.
fpapon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/master by this push:
new f39530e Add Sonarqube quality check
new 3008045 Merge pull request #256 from fpapon/SONARCFG
f39530e is described below
commit f39530ea5476a31a1d5c3344419692d677bfc712
Author: Francois Papon <[email protected]>
AuthorDate: Sun Sep 20 18:36:52 2020 +0200
Add Sonarqube quality check
---
Jenkinsfile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index fc7e01f..81a93ca 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -18,7 +18,6 @@
* limitations under the License.
*
*/
-
pipeline {
agent {
@@ -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 {