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

test

上级 f99288ad
流水线 #237 已取消 于阶段
stages:
- build
- sonarqube-check
build_job:
stage: build
tags:
- tagTest
trigger_build:
stage: deploy
script:
- echo "Building the Java project with Maven..."
sonarqube-check:
stage: sonarqube-check
image: maven:3.6.3-jdk-11
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
- "curl -X POST -F token=_GuzTfPDVvA6BYsD112W -F ref=sonarqube http://scjoyedu.eicp.net:9121/api/v4/projects/367/trigger/pipeline"
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论