From 3cf5565db69b5b95b79fa74f67fdc1a98584a36d Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Fri, 18 Apr 2025 18:22:26 +0800 Subject: [PATCH] 002sync_code.sh --- dsl/002sync_code.sh | 48 +++++++++--------------------------------------- 1 file changed, 9 insertions(+), 39 deletions(-) diff --git a/dsl/002sync_code.sh b/dsl/002sync_code.sh index 1c26f9d..3863511 100644 --- a/dsl/002sync_code.sh +++ b/dsl/002sync_code.sh @@ -194,44 +194,14 @@ commit_target() { git push origin $target_branch } -source_pull -target_pull -source_build -target_pull -sync_files -target_build -commit_target - -cmd=$1 -kls_source_path=/home/www/sync_code/sd_dsl/wms85std-sd-dsl - -echo -e "$echoPrefix cd $kls_source_path $echoSuffix" -cd $kls_source_path -echo -e "$echoPrefix git checkout -b main kls/main $echoSuffix" -git checkout -b main kls/main || true -echo -e "$echoPrefix git checkout main $echoSuffix" -git checkout main -echo -e "$echoPrefix git pull kls main:main -f $echoSuffix" -git pull kls main:main -f - -if [ "$cmd" == "test" ];then - echo -e "$echoPrefix git push dsl main:release/test -f $echoSuffix" - git push dsl main:release/test -f - echo "" - echo "等待大参林能笑平台构建部署,约15分钟" -elif [ "$cmd" == "prod" ];then - echo -e "$echoPrefix git push dsl main:release/prod -f $echoSuffix" - git push dsl main:release/prod -f - echo "" - echo "等待大参林能笑平台构建部署,约15分钟" -elif [ "$cmd" == "develop" ];then - echo -e "$echoPrefix git push dsl main:develop -f $echoSuffix" - git push dsl main:develop -f - echo "" - echo "等待大参林能笑平台构建部署,约15分钟" -else - echo "" - echo "输入需要发版环境: test prod develop" -fi +#source_pull +#target_pull +#source_build +#target_pull +#sync_files +#target_build +#commit_target + +echo "已废弃!!!" # bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/dsl/002sync_code.sh)