|
|
|
@ -20,7 +20,7 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage('sonar质量检测') { // 阶段3:使用Sonar进行代码质量检测
|
|
|
|
|
steps {
|
|
|
|
|
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'
|
|
|
|
|
sh '/var/jenkins_home/sonar-scanner-linux/bin/sonar-scanner -Dsonar.perjectname=${JOB_NAME} -Dsonar.projectKey=${JOB_NAME} -Dsonar.sources=./ -Dsonar.java.binaries=./target/ -Dsonar.login=sqa_7f6128c142f9f30caac0a5141c46d4223f71e2f1'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('构建镜像') { // 阶段4:构建Docker镜像
|
|
|
|
|