Explorar o código

更新 'Jenkinsfile'

通过SonarQube做代码质量检测
chl %!s(int64=2) %!d(string=hai) anos
pai
achega
d87bef129f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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制作自定义镜像'){