提交 2c01d19f authored 作者: husishuai's avatar husishuai

test33

上级 bfc3cd75
流水线 #260 已通过 于阶段
in 33 分 40 秒
stages: sonarqube-check:
- testGitLab image: maven:3.6.3-jdk-11
job_test:
stage: testGitLab
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
...@@ -11,9 +7,8 @@ job_test: ...@@ -11,9 +7,8 @@ job_test:
key: "${CI_JOB_NAME}" key: "${CI_JOB_NAME}"
paths: paths:
- .sonar/cache - .sonar/cache
tags:
- testTag
script: script:
- echo "Running tests..." - mvn verify sonar:sonar
allow_failure: true
only: only:
- master - master # or the name of your main branch
...@@ -16,13 +16,8 @@ ...@@ -16,13 +16,8 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<java.version>17</java.version> <java.version>17</java.version>
<sonar.projectKey>hushuai_sonarqube_9e8190d1-68c8-479e-89a7-b0459310d043</sonar.projectKey> <sonar.projectKey>root_test_AY6dtiCre7_OwYyXkA-R</sonar.projectKey>
<sonar.projectName>sonarqube</sonar.projectName>
<sonar.qualitygate.wait>true</sonar.qualitygate.wait> <sonar.qualitygate.wait>true</sonar.qualitygate.wait>
<sonar.login>admin</sonar.login>
<sonar.password>admin123</sonar.password>
<sonar.token>N_sUSTy2cjGNB42aZH2J</sonar.token>
<sonar.host.url>http://192.168.126.20:9009</sonar.host.url>
</properties> </properties>
<build> <build>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论