Commit 8c9e8790 by xujian

xx

parent bfa692ea
......@@ -9,7 +9,7 @@ def repos = [
def modules = [
]
def push_path = 192.168.31.200/develop
pipeline {
agent any
......@@ -125,11 +125,13 @@ pipeline {
for (module in modules) {
if(module.isUpdate && module.isEncryption){
sh "cd ${module.dir}/${module.path} && mvn classfinal:classFinal"
sh "docker build -f Docker/encryption/Dockerfile -t ${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
sh "docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
sh "docker push ${push_path}/${module.name}:${module.version}"
}
if (module.isUpdate && !module.isEncryption) {
sh "docker build -f Docker/noencryption/Dockerfile -t ${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
sh "docker build -f Docker/noencryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
sh "docker push ${push_path}/${module.name}:${module.version}"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment