Browse Source

更新 'Jenkinsfile'

通过SonarQube做代码质量检测
chl 2 năm trước cách đây
mục cha
commit
d87bef129f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -21,7 +21,7 @@ pipeline{
   }
   stage('通过SonarQube做代码质量检测'){
    steps{
-    echo '通过SonarQube做代码质量检测 - SUCCESS'
+    sh '/var/jenkins_home/sonar-scanner/bin/sonar-scanner -Dsonar.source=./ -Dsonar.projectname=${JOB_NAME} -Dsonar.projectKey=${JOB_NAME} -Dsonar.java.binaries=./target/ -Dsonar.login=b5071fbe332d4863b0c96b0d648593b23ec8d6c8'
    }
   }
   stage('通过Docker制作自定义镜像'){