Commit 083c0510 by xujian

xx

parent 8c9e8790
......@@ -126,11 +126,13 @@ pipeline {
if(module.isUpdate && module.isEncryption){
sh "cd ${module.dir}/${module.path} && mvn classfinal:classFinal"
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 "cat Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${module.name}:${module.version}"
}
if (module.isUpdate && !module.isEncryption) {
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 "cat Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
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