OCT 1. 更新 gitlab-ci 配置, 支持 sonar
This commit is contained in:
parent
bc0ea7b674
commit
92f5016cc2
|
@ -1,11 +1,13 @@
|
||||||
# 本次构建的阶段: compile、package、deploy
|
# 本次构建的阶段: compile、package、deploy
|
||||||
stages :
|
stages :
|
||||||
- sonarqube-check
|
- sonarqube-check
|
||||||
- compile
|
- compile
|
||||||
- package
|
- package
|
||||||
|
|
||||||
sonarqube-check :
|
sonarqube-check:
|
||||||
stage : sonarqube-check
|
stage : sonarqube-check
|
||||||
|
tags :
|
||||||
|
- linux-maven
|
||||||
image : maven:3-eclipse-temurin-17
|
image : maven:3-eclipse-temurin-17
|
||||||
variables :
|
variables :
|
||||||
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
|
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
|
||||||
|
@ -24,7 +26,7 @@ sonarqube-check :
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
# 编译
|
# 编译
|
||||||
compile :
|
compile :
|
||||||
stage : compile
|
stage : compile
|
||||||
tags :
|
tags :
|
||||||
- linux-maven
|
- linux-maven
|
||||||
|
@ -35,7 +37,7 @@ compile :
|
||||||
- mvn compile
|
- mvn compile
|
||||||
|
|
||||||
# 打包
|
# 打包
|
||||||
package :
|
package :
|
||||||
stage : package
|
stage : package
|
||||||
tags :
|
tags :
|
||||||
- linux-maven
|
- linux-maven
|
||||||
|
|
Loading…
Reference in New Issue