OCT 1. 更新 gitlab-ci 配置

This commit is contained in:
黄昕 2024-03-06 11:24:30 +08:00
parent 98eab99263
commit 94576dce77
1 changed files with 1 additions and 19 deletions

View File

@ -1,11 +1,10 @@
# 本次构建的阶段: compile、package、deploy
stages :
- sonarqube-check
- sonarqube-vulnerability-report
- compile
- integration-test
- package
# 代码质量检查
sonarqube-check :
stage : sonarqube-check
tags :
@ -27,23 +26,6 @@ sonarqube-check :
- main
- develop
sonarqube-vulnerability-report:
stage: sonarqube-vulnerability-report
script:
- 'curl -u "${SONAR_TOKEN}:" "${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=cmhi_commonframework_79d69580-8b80-4c2c-aff6-b289255ae16a&branch=${CI_COMMIT_BRANCH}&pullRequest=${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
allow_failure: true
only:
- merge_requests
- master
- main
- develop
artifacts:
expire_in: 1 day
reports:
sast: gl-sast-sonar-report.json
dependencies:
- sonarqube-check
# 编译
compile :
stage : compile