From c4b569bb85f2f1d25d691595ad7b1600c1c551da Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Tue, 10 Sep 2024 09:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9build=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k8s/build.sh b/k8s/build.sh index aa567261..943998e2 100644 --- a/k8s/build.sh +++ b/k8s/build.sh @@ -43,6 +43,7 @@ cd ${baseDir} # 拉取指定分支的最新代码 echo "Checking out and pulling branch $branch..." + git stash git checkout $branch if [ $? -ne 0 ]; then @@ -57,7 +58,8 @@ if [ $? -ne 0 ]; then exit 1 fi -chmod +777 *.sh +chmod +777 ${baseDir}/*.sh + # 创建目录 mkdir -p ${baseDir}/k8s/dockerfiles/jar mkdir -p ${baseDir}/k8s/dockerfiles/html