OCT 1. 更新 gitlab-ci 配置, 支持 sonar
This commit is contained in:
parent
f47a0ea26b
commit
bc0ea7b674
|
@ -1,7 +1,6 @@
|
||||||
# 本次构建的阶段: compile、package、deploy
|
# 本次构建的阶段: compile、package、deploy
|
||||||
stages :
|
stages :
|
||||||
- sonarqube-check
|
- sonarqube-check
|
||||||
- sonarqube-vulnerability-report
|
|
||||||
- compile
|
- compile
|
||||||
- package
|
- package
|
||||||
|
|
||||||
|
@ -24,23 +23,6 @@ sonarqube-check :
|
||||||
- main
|
- main
|
||||||
- develop
|
- 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 :
|
compile :
|
||||||
stage : compile
|
stage : compile
|
||||||
|
|
Loading…
Reference in New Issue