Commit f4955dbc authored by jwf's avatar jwf

微服务打包

parent 7b1be30d
......@@ -132,14 +132,7 @@ pipeline {
if(module.isUpdate && module.isEncryption){
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml classfinal:classFinal"
if(module.name == 'qrcode-modules-data-sharing'){
sh "docker build -f Docker/mysqldump/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.jar ${workspace}"
} else {
sh "docker build -f Docker/encryption/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*-encrypted.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"
......@@ -147,7 +140,12 @@ pipeline {
}
if (module.isUpdate && !module.isEncryption) {
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
if(module.name == 'qrcode-modules-data-sharing'){
sh "docker build -f Docker/mysqldump/Dockerfile -t ${push_path}/${module.name}:${module.version} --build-arg FILE_NAME=${module.dir}/${module.path}/target/*.jar ${workspace}"
} else {
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 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"
......
......@@ -57,7 +57,7 @@ core:
- name: qrcode-modules-data-sharing
path: factory-tobacco-qrcode-modules-data-sharing
isEncryption: false
version: v25.04.30.2
version: v25.04.30.3
isUpdate: true
#
# - name: factory-tobacco-qrcode-modules-gen
......
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