diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9563c8..a706f69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ # 本次构建的阶段: compile、package、deploy stages : - sonarqube-check - - sonarqube-vulnerability-report - compile - package @@ -24,23 +23,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