Commit 513afbe4 by xujian

xx

parent 13b001f6
......@@ -128,14 +128,14 @@ pipeline {
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 "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${module.name}:${module.version}"
sh "docker images -f "dangling=true" -q | xargs -r docker rmi"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
}
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 "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
sh "docker push ${push_path}/${module.name}:${module.version}"
sh "docker images -f "dangling=true" -q | xargs -r docker rmi"
sh "docker images -f 'dangling=true' -q | xargs -r docker rmi"
}
}
}
......
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