Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
leyi cen
Jeesns_test
Commits
8848b27e
Commit
8848b27e
authored
2 years ago
by
leyi cen
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
98dfba2b
master
No related merge requests found
Pipeline
#13336
passed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-3
.gitlab-ci.yml
with
5 additions
and
3 deletions
+5
-3
.gitlab-ci.yml
+
5
-
3
View file @
8848b27e
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help