diff --git a/Jenkinsfile b/Jenkinsfile index 6432c87..65e8d53 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { stage('sonar质量检测') { // 阶段3:使用Sonar进行代码质量检测 steps { - echo 'sonar质量检测--成功' // 打印信息表示质量检测阶段成功完成 + sh '/var/jenkins_home/sonar-scanner/bin/sonar-scanner -Dsonar.perjectname=${JOB_NAME} -Dsonar.projectKey=${JOB_NAME} -Dsonar.sources=./ -Dsonar.java.binaries=./target/ -Dsonar.login=sqa_7f6128c142f9f30caac0a5141c46d4223f71e2f1' } } stage('构建镜像') { // 阶段4:构建Docker镜像