From 92f5016cc2e943c0e1ddef8a60f42f151b61d12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Tue, 5 Mar 2024 15:19:10 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E6=9B=B4=E6=96=B0=20gitlab-ci=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=20=E6=94=AF=E6=8C=81=20sonar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a706f69..c9c811c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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