Merge branch 'develop' into dev_20241202_xukangle
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -78,15 +78,15 @@ pipeline { | ... | @@ -78,15 +78,15 @@ pipeline { |
| 78 | ##构建镜像到远程仓库 | 78 | ##构建镜像到远程仓库 |
| 79 | docker login "${ip}" -u admin -p E6w611g864wQ2 | 79 | docker login "${ip}" -u admin -p E6w611g864wQ2 |
| 80 | #docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" | 80 | #docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" |
| 81 | docker build -t "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" . | 81 | docker build -t "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" . |
| 82 | docker push "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" | 82 | docker push "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" |
| 83 | else | 83 | else |
| 84 | echo "不存在'${SVN_FOLD}'镜像,开始构建镜像" | 84 | echo "不存在'${SVN_FOLD}'镜像,开始构建镜像" |
| 85 | ##构建镜像到远程仓库 | 85 | ##构建镜像到远程仓库 |
| 86 | docker login "${ip}" -u admin -p E6w611g864wQ2 | 86 | docker login "${ip}" -u admin -p E6w611g864wQ2 |
| 87 | #docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" | 87 | #docker tag "${SVN_FOLD}":"${image_tag}" "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" |
| 88 | docker build -t "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" . | 88 | docker build -t "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" . |
| 89 | docker push "${ip}"/csbr/"${SVN_FOLD}":"${image_tag}" | 89 | docker push "${ip}"/csbr/"${SVN_FOLD}""-${SVN_TYPE}":"${image_tag}" |
| 90 | fi | 90 | fi |
| 91 | ''' | 91 | ''' |
| 92 | echo 'Depoly ${SVN_FOLD} success ...' | 92 | echo 'Depoly ${SVN_FOLD} success ...' |
| ... | @@ -112,7 +112,7 @@ pipeline { | ... | @@ -112,7 +112,7 @@ pipeline { |
| 112 | //master-asset分支环境 | 112 | //master-asset分支环境 |
| 113 | echo 'start to deploy ${SVN_FOLD} on develop ...' | 113 | echo 'start to deploy ${SVN_FOLD} on develop ...' |
| 114 | //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本 | 114 | //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本 |
| 115 | sshPublisher(publishers: [sshPublisherDesc(configName: "csbr5.3", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """ | 115 | sshPublisher(publishers: [sshPublisherDesc(configName: "csbr20", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """ |
| 116 | #使用k8s构建 | 116 | #使用k8s构建 |
| 117 | kubectl delete -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml | 117 | kubectl delete -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml |
| 118 | kubectl apply -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml | 118 | kubectl apply -f /mnt/k8s/develop/daop-jgjf/fe-data-asset-management.yaml | ... | ... |
-
Please register or sign in to post a comment