38bc71d5 by xu

Update Jenkinsfile

1 parent afaa854e
......@@ -7,7 +7,7 @@ pipeline {
SSH_PATH = "csbr20"
SVN_TYPE = "dev"
image_tag = "1.0.0"
ip = "192.168.6.22:8081"
ip = "121.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}"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!