提交 ebd3badf authored 作者: husishuai's avatar husishuai

test

上级 7db5b66e
流水线 #245 已通过 于阶段
...@@ -3,10 +3,8 @@ stages: ...@@ -3,10 +3,8 @@ stages:
- sonarqube-vulnerability-report - sonarqube-vulnerability-report
sonarqube-check: sonarqube-check:
tags:
- testTag
stage: sonarqube-check stage: sonarqube-check
image: maven:3.6.3-jdk-11 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
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
...@@ -15,9 +13,10 @@ sonarqube-check: ...@@ -15,9 +13,10 @@ sonarqube-check:
paths: paths:
- .sonar/cache - .sonar/cache
script: script:
- JAVA_HOME=/data/jdk/jdk1.8.0_181/
# - mvn -e -B -V verify sonar:sonar -Dsonar.login=a4x6g56PCyCBy8va_Egy
- mvn verify sonar:sonar - mvn verify sonar:sonar
allow_failure: true allow_failure: true
only: only:
- merge_requests
- master - master
- main
- develop
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论