1. 更新流水线配置
This commit is contained in:
parent
835f26c25c
commit
36b5443eb7
|
@ -16,6 +16,20 @@ compile :
|
||||||
- echo "=============== 开始编译任务 ==============="
|
- echo "=============== 开始编译任务 ==============="
|
||||||
- mvn clean compile -DskipTests
|
- mvn clean compile -DskipTests
|
||||||
|
|
||||||
|
security-test-job:
|
||||||
|
stage: test
|
||||||
|
tags:
|
||||||
|
- linux-maven
|
||||||
|
script:
|
||||||
|
- echo "do opensca scan..."
|
||||||
|
- $HOME/.config/opensca-cli/opensca-cli -path $CI_PROJECT_DIR -token glpat-8LV_ERinz1jsKFf9prg_ -out $CI_PROJECT_DIR/results/result.html,$CI_PROJECT_DIR/results/result.dsdx.json
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- results/
|
||||||
|
untracked: false
|
||||||
|
when: on_success
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
# 集成测试
|
# 集成测试
|
||||||
integration-test:
|
integration-test:
|
||||||
stage : test
|
stage : test
|
||||||
|
@ -40,20 +54,6 @@ integration-test:
|
||||||
dependencies:
|
dependencies:
|
||||||
- compile
|
- compile
|
||||||
|
|
||||||
security-test-job:
|
|
||||||
stage: test
|
|
||||||
tags:
|
|
||||||
- linux-maven
|
|
||||||
script:
|
|
||||||
- echo "do opensca scan..."
|
|
||||||
- /root/.config/opensca-cli/opensca-cli -path $CI_PROJECT_DIR -token glpat-8LV_ERinz1jsKFf9prg_ -out $CI_PROJECT_DIR/results/result.html,$CI_PROJECT_DIR/results/result.dsdx.json
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- results/
|
|
||||||
untracked: false
|
|
||||||
when: on_success
|
|
||||||
expire_in: 30 days
|
|
||||||
|
|
||||||
# 代码质量检查
|
# 代码质量检查
|
||||||
sonarqube-check :
|
sonarqube-check :
|
||||||
stage : check
|
stage : check
|
||||||
|
|
Loading…
Reference in New Issue