Compare commits

..

No commits in common. "bc0ea7b6740ac6701aad8af99a3edf1c5869b5c2" and "d7887c5334a47f6d775edfdd36a28a96ef543da9" have entirely different histories.

2 changed files with 9 additions and 32 deletions

View File

@ -1,45 +1,25 @@
# 本次构建的阶段: compile、package、deploy
stages :
- sonarqube-check
stages:
- compile
- package
sonarqube-check :
stage : sonarqube-check
image : maven:3-eclipse-temurin-17
variables :
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH : "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache :
key : "${CI_JOB_NAME}"
paths:
- .sonar/cache
script :
- mvn verify sonar:sonar
allow_failure: true
only :
- merge_requests
- master
- main
- develop
# 编译
compile :
stage : compile
tags :
compile:
stage: compile
tags:
- linux-maven
only :
only:
- master
script:
- echo "=============== 开始编译任务 ==============="
- mvn compile
# 打包
package :
stage : package
tags :
package:
stage: package
tags:
- linux-maven
only :
only:
- master
script:
- echo "=============== 开始打包任务 ==============="

View File

@ -15,9 +15,6 @@
<description>CommonFramework</description>
<properties>
<java.version>17</java.version>
<sonar.projectKey>cmhi_commonframework_79d69580-8b80-4c2c-aff6-b289255ae16a</sonar.projectKey>
<sonar.projectName>CommonFramework</sonar.projectName>
<sonar.qualitygate.wait>true</sonar.qualitygate.wait>
</properties>
<dependencies>
<dependency>