Commit 51747109 by suhang

打包

parent ba8bfab1
...@@ -114,7 +114,7 @@ pipeline { ...@@ -114,7 +114,7 @@ pipeline {
script { script {
for (repo in repos) { for (repo in repos) {
dir(repo.dir) { dir(repo.dir) {
if ( repo.isUpdate && repo.type == 'mvn') sh "mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml package install" if ( repo.isUpdate && repo.type == 'mvn') sh "mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
else if ( repo.isUpdate && repo.type == 'node') sh "npm install --registry=https://registry.npmmirror.com && npm run build:prod-htj" else if ( repo.isUpdate && repo.type == 'node') sh "npm install --registry=https://registry.npmmirror.com && npm run build:prod-htj"
else echo "xxx" else echo "xxx"
} }
...@@ -128,7 +128,7 @@ pipeline { ...@@ -128,7 +128,7 @@ pipeline {
sh "export DOCKER_HOST=192.168.31.250" sh "export DOCKER_HOST=192.168.31.250"
for (module in modules) { for (module in modules) {
if(module.isUpdate && module.isEncryption){ if(module.isUpdate && module.isEncryption){
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml package install" 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" sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml 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/*-encrypted.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/*-encrypted.jar ${workspace}"
sh "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin" sh "echo Qrcode@2022 | docker login https://192.168.31.201 --username admin --password-stdin"
...@@ -137,7 +137,7 @@ pipeline { ...@@ -137,7 +137,7 @@ pipeline {
} }
if (module.isUpdate && !module.isEncryption) { if (module.isUpdate && !module.isEncryption) {
sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml package install" sh "cd ${module.dir}/${module.path} && mvn -Dmaven.test.failure.ignore=true -s /var/lib/jenkins/settings-itimQR.xml clean package install"
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 "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 push ${push_path}/${module.name}:${module.version}"
......
...@@ -105,8 +105,8 @@ htj: ...@@ -105,8 +105,8 @@ htj:
- name: factory-tobacco-qrcode-modules-db-version-control - name: factory-tobacco-qrcode-modules-db-version-control
path: factory-tobacco-qrcode-modules-db-version-control path: factory-tobacco-qrcode-modules-db-version-control
isEncryption: false isEncryption: false
version: v24.11.26-2.03.003-1-cs version: v24.11.27-2.03.003-2-cs
isUpdate: false isUpdate: true
- name: factory-tobacco-qrcode-modules-iotege-relation - name: factory-tobacco-qrcode-modules-iotege-relation
path: factory-tobacco-qrcode-modules-iotege-relation path: factory-tobacco-qrcode-modules-iotege-relation
...@@ -141,7 +141,7 @@ htj: ...@@ -141,7 +141,7 @@ htj:
- name: factory-tobacco-qrcode-modules-product-upload - name: factory-tobacco-qrcode-modules-product-upload
path: factory-tobacco-qrcode-modules-product-upload path: factory-tobacco-qrcode-modules-product-upload
isEncryption: true isEncryption: true
version: v24.11.26-2.03.003-1-cs version: v24.11.27-2.03.003-2-cs
isUpdate: true isUpdate: true
- name: factory-tobacco-qrcode-modules-wip-relation - name: factory-tobacco-qrcode-modules-wip-relation
......
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