From 2985c6a0bcba61d9077cf986f28b0b61e569a4cb Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 14 Oct 2024 17:57:43 +0800 Subject: [PATCH] update scripts --- scripts_244/deploy.sh | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/scripts_244/deploy.sh b/scripts_244/deploy.sh index 7c4becf8..6145d6ce 100644 --- a/scripts_244/deploy.sh +++ b/scripts_244/deploy.sh @@ -1,21 +1,18 @@ #!/bin/bash +suffix="-material" +jar_version="24.9.0" export deploy_path=/opt/webapps/bonus-material - -export app_workspace=/opt/builds/releases/Bonus-Cloud/24.9.0 +export app_workspace=/opt/builds/releases/Bonus-Cloud/${jar_version} export biz_workspace=/opt/install/jenkins_home/workspace/Bonus-Cloud-Material -suffix="-material" - - app_source_jars=( - "bonus-auth-24.9.0.jar" - "bonus-gateway-24.9.0.jar" - #"bonus-file-24.9.0.jar" - #"bonus-gen-24.9.0.jar" - #"bonus-job-24.9.0.jar" - "bonus-system-24.9.0.jar" - "bonus-visual-monitor-24.9.0.jar" + "bonus-auth-${jar_version}.jar" + "bonus-gateway-${jar_version}.jar" + "bonus-system-${jar_version}.jar" + "bonus-job-${jar_version}.jar" + #"bonus-file-${jar_version}.jar" + #"bonus-visual-monitor-${jar_version}.jar" ) #for source_jar in "${app_source_jars[@]}"; do @@ -41,13 +38,12 @@ cp -f ${biz_workspace}/"bonus-modules/bonus-material/target/bonus-material.jar" echo "copied ${app_workspace}/${source_jar} to $deploy_path" # Define an array of JAR files to run -jars=("bonus-auth-24.9.0-material.jar --spring.config.location=file:auth_bootstrap.yml" -"bonus-gateway-24.9.0-material.jar --spring.config.location=file:gateway_bootstrap.yml" -"bonus-system-24.9.0-material.jar --spring.config.location=file:system_bootstrap.yml" -#"bonus-gen-24.9.0-material.jar --spring.config.location=file:gen_bootstrap.yml" -#"bonus-job-24.9.0-material.jar --spring.config.location=file:job_bootstrap.yml" -#"bonus-file-24.9.0-material.jar --spring.config.location=file:file_bootstrap.yml" -#"bonus-visual-24.9.0-monitor-material.jar --spring.config.location=file:visual_bootstrap.yml" +jars=("bonus-auth-${jar_version}-material.jar --spring.config.location=file:auth_bootstrap.yml" +"bonus-gateway-${jar_version}-material.jar --spring.config.location=file:gateway_bootstrap.yml" +"bonus-system-${jar_version}-material.jar --spring.config.location=file:system_bootstrap.yml" +"bonus-job-${jar_version}-material.jar --spring.config.location=file:job_bootstrap.yml" +#"bonus-file-${jar_version}-material.jar --spring.config.location=file:file_bootstrap.yml" +#"bonus-visual-${jar_version}-monitor-material.jar --spring.config.location=file:visual_bootstrap.yml" "bonus-material.jar --spring.config.location=file:material_bootstrap.yml") # 遍历数组并检查每个JAR文件的进程