Commit 8848b27e authored by leyi cen's avatar leyi cen
Browse files

更新.gitlab-ci.yml文件

parent 98dfba2b
No related merge requests found
Pipeline #13336 passed with stages
in 1 minute and 2 seconds
Showing with 5 additions and 3 deletions
+5 -3
...@@ -6,14 +6,16 @@ variables: ...@@ -6,14 +6,16 @@ variables:
fortify-sast-scancentral: fortify-sast-scancentral:
stage: fortify-sast-scancentral stage: fortify-sast-scancentral
image: repo.gitsec.cn/docker/fortify-ci:v1.3 image: repo.gitsec.cn/docker/fortify-ci:v1.8
script: script:
# 执行脚本创建项目以及填入属性 # 执行脚本创建项目以及填入属性
- mvn install:install-file -Dfile=./jeesns-core/jeesns-core-2.0.0-Beta1.jar -DgroupId=cn.jeesns -DartifactId=jeesns-core -Dversion=2.0.0-Beta1 -Dpackaging=jar
- echo $(date +%s) > time.txt - echo $(date +%s) > time.txt
- python3 /home/script/create.py $CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat time.txt) 1 FortifyToken MjMzM2IyNzgtZDRiOS00ZTA4LWJjZjAtOTM3YzhiNTJlMDNj http://fortify.gitsec.cn - python3 /home/script/create.py $CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat time.txt) 1 FortifyToken MjMzM2IyNzgtZDRiOS00ZTA4LWJjZjAtOTM3YzhiNTJlMDNj http://fortify.gitsec.cn
# 上传待扫描的项目 # 上传待扫描的项目
- 'scancentral -url http://fortify.gitsec.cn/scancentral-ctrl/ -ssctoken 5dd97723-c2a4-476e-9351-417e8a50beff start -bt $build_type -upload -application $CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat time.txt) -version 1 -uptoken 5dd97723-c2a4-476e-9351-417e8a50beff | tee -a report.log' - 'scancentral -url http://fortify.gitsec.cn/scancentral-ctrl/ -ssctoken 5dd97723-c2a4-476e-9351-417e8a50beff start -bt $build_type -bc "clean -Dmaven.test.skip=true
allow_failure: false " -bc "install -Dmaven.test.skip=true" -upload -application $CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat time.txt) -version 1 -uptoken 5dd97723-c2a4-476e-9351-417e8a50beff | tee -a report.log'
allow_failure: true
#上传到私有仓库 #上传到私有仓库
artifacts: artifacts:
paths: paths:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment