|
@@ -75,7 +75,7 @@ pipeline{ |
|
|
if(params.operation=='develop') |
|
|
if(params.operation=='develop') |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
sh "docker build -t 10.2.1.24:10242/bpa/groupmeal:${build_tag} ." |
|
|
|
|
|
|
|
|
sh "docker build -t 10.2.1.24:10242/bpa/groupmealorder:${build_tag} ." |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -91,7 +91,7 @@ pipeline{ |
|
|
sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242" |
|
|
sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242" |
|
|
if(params.operation=='develop') |
|
|
if(params.operation=='develop') |
|
|
{ |
|
|
{ |
|
|
sh "docker push 10.2.1.24:10242/bpa/groupmeal:${build_tag}" |
|
|
|
|
|
|
|
|
sh "docker push 10.2.1.24:10242/bpa/groupmealorder:${build_tag}" |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@@ -112,10 +112,10 @@ pipeline{ |
|
|
// input "确认要部署线上环境吗?" |
|
|
// input "确认要部署线上环境吗?" |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s_groupmeal.yaml" |
|
|
|
|
|
sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s_groupmeal.yaml" |
|
|
|
|
|
sh "sed -i 's/<NAMESPACES>/${params.environment}/' k8s_groupmeal.yaml" |
|
|
|
|
|
sh "kubectl apply -f k8s_groupmeal.yaml --record" |
|
|
|
|
|
|
|
|
sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s_groupmealorder.yaml" |
|
|
|
|
|
sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s_groupmealorder.yaml" |
|
|
|
|
|
sh "sed -i 's/<NAMESPACES>/${params.environment}/' k8s_groupmealorder.yaml" |
|
|
|
|
|
sh "kubectl apply -f k8s_groupmealorder.yaml --record" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|