Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
38bc71d5
authored
2026-03-06 14:01:02 +0800
by
xu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update Jenkinsfile
1 parent
afaa854e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
Jenkinsfile
Jenkinsfile
View file @
38bc71d
...
...
@@ -7,7 +7,7 @@ pipeline {
SSH_PATH = "csbr20"
SVN_TYPE = "dev"
image_tag = "1.0.0"
ip = "1
92.168.6.22:8081
"
ip = "1
21.237.182.192:30002
"
port = "59900"
vport = "80"
...
...
@@ -66,14 +66,14 @@ pipeline {
echo "存在'${SVN_FOLD}'镜像,IID='$IID'"
cd "$WORKSPACE"/
##构建镜像到远程仓库
docker login "${ip}" -u admin -p
E6w611g864wQ2
docker login "${ip}" -u admin -p
O2x760m922pX8
#docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}"
docker build -t "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" .
docker push "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}"
else
echo "不存在'${SVN_FOLD}'镜像,开始构建镜像"
##构建镜像到远程仓库
docker login "${ip}" -u admin -p
E6w611g864wQ2
docker login "${ip}" -u admin -p
O2x760m922pX8
#docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}"
docker build -t "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" .
docker push "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}"
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment