Browse Source

fix(jenkins): produ 远程同步改用 reset --hard 避免分叉 pull 失败

Co-authored-by: Cursor <cursoragent@cursor.com>
天空之城 15 hours ago
parent
commit
93304df400
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -149,7 +149,7 @@ if [ ! -d .git ]; then
 fi
 git fetch origin
 git checkout '${env.BRANCH}'
-git pull origin '${env.BRANCH}'
+git reset --hard origin/'${env.BRANCH}'
 echo ">>> git at \$(git rev-parse --short HEAD) on \$(hostname)"
 REMOTE_EOF
           """