소스 검색

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

Co-authored-by: Cursor <cursoragent@cursor.com>
天空之城 17 시간 전
부모
커밋
93304df400
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
           """