瀏覽代碼

ci: disable dotnet build servers + MSBuild node reuse to prevent Jenkins durable-task pipe-hold hang

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
jino 1 周之前
父節點
當前提交
9367ffd977
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -131,7 +131,7 @@ pipeline {
     stage('Restore') {
       steps {
         dir(env.WORK_SUBDIR) {
-          bat 'chcp 65001 >NUL && dotnet restore %SLN_FILE%'
+          bat 'chcp 65001 >NUL && dotnet restore %SLN_FILE% --disable-build-servers'
         }
       }
     }
@@ -139,7 +139,7 @@ pipeline {
     stage('Build') {
       steps {
         dir(env.WORK_SUBDIR) {
-          bat 'chcp 65001 >NUL && dotnet build %SLN_FILE% -c Release --no-restore'
+          bat 'set MSBUILDDISABLENODEREUSE=1 && chcp 65001 >NUL && dotnet build %SLN_FILE% -c Release --no-restore --disable-build-servers'
         }
       }
     }