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
git test
Halo
Commits
db1d5184
Commit
db1d5184
authored
3 years ago
by
git test
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
a79211c4
release-1.4
Pipeline
#8537
canceled with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+43
-0
.gitlab-ci.yml
with
43 additions
and
0 deletions
+43
-0
.gitlab-ci.yml
0 → 100644
+
43
-
0
View file @
db1d5184
stages
:
#脚本按照此处顺序执行
-
source
variables
:
#设置变量后面可以调用
# settings 检测job要使用
MAVEN_CLI_OPTS
:
"
--settings
settings.xml
--batch-mode
-DskipTests=true"
#应用封装到镜像后的镜像的版本号
DOCKER_VERSION
:
"
v1"
#应用发布后对应的访问地址
TARGETS_URL
:
"
http://139.9.7.237:32020/jeesns-web"
#应用发布映射到公网的端口(找管理员申请)
DEPLOYMENT_PORT
:
"
32020"
#web服务端口
WEB_PORT
:
"
8080"
# 之前我们生成的项目token
GIT_TOKEN
:
"
sVxw9M99mWVsp2TkDE9u"
# git分支(版本号)指定(可以为空,默认使用master)
GIT_BRANCH
:
"
master_v1.4.2"
# 指定语言(1:Java;9:JavaScript)不指定为自动识别语言
LANGUAGE
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
source
:
stage
:
source
image
:
"
repo.gitsec.cn/docker/sca_scanner:latest"
#选择使用那个镜像
tags
:
-
k8s
script
:
-
java -jar /opt/seczone/scanner.jar --filePath $PWD --parseFrom 4 --cliMode portal --projectName zhouyong233 --phase Phase_1 --onCache
true
--mergeMode FULL --retrunCheckReport
true
--token b3JnYWRtaW5Ac2Vjem9uZS5jbjo1ZTU2OTQxNWMzZTA0NGVmYWY5ODVjZDZlODkxYTY3NA== --portalIp https://sca.seczone.cn/
#需要修改的值,token如果失效需要找管理员申请
-
ls;pwd
artifacts
:
reports
:
dependency_scanning
:
vulReport.json
license_scanning
:
licenseReport.json
paths
:
-
licenseReport.json
-
vulReport.json
#读取检测结果不用修改
expire_in
:
3 day
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