OCT 1. 更新 gitlab-ci 配置, 支持 sonar

This commit is contained in:
黄昕 2024-03-05 15:19:10 +08:00
parent bc0ea7b674
commit 92f5016cc2
1 changed files with 6 additions and 4 deletions

View File

@ -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