From a1c9ef7c3c55c45afefab2be57de3eade40a9f9a Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Tue, 10 Sep 2024 09:28:49 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/k8s/build.sh b/k8s/build.sh index c9d46265..b2048d34 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 echo "切换到分支 $branch 失败,请检查分支名称是否正确!"