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