提交 756e22ba authored 作者: husishuai's avatar husishuai

test

上级 201792c2
流水线 #233 已取消 于阶段
trigger_build: stages:
stage: deploy - build
- sonarqube-check
# 如果您还有 "sonarqube-vulnerability-report" 阶段的其他作业,请确保将其添加到这里
build_job:
stage: build
tags:
- test
script: script:
- "curl -X POST -F token=sqp_7f8d3038281c4b26f5b17398d694fb50071cc56c -F ref=sonarqube http://scjoyedu.eicp.net:9121/api/v4/projects/367/trigger/pipeline" - echo "Building the Java project with Maven..."
\ No newline at end of file - mvn clean install -B
sonarqube-check:
stage: sonarqube-check
image: maven:3-eclipse-temurin-17
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
GIT_DEPTH: "0"
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- mvn verify sonar:sonar
allow_failure: true
only:
- merge_requests
- master
- main
- develop
# 如果您有 "sonarqube-vulnerability-report" 阶段的作业,请在这里添加它
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论