Просмотр исходного кода

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 2 дней назад
Родитель
Сommit
9367ffd977
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -131,7 +131,7 @@ pipeline {
     stage('Restore') {
     stage('Restore') {
       steps {
       steps {
         dir(env.WORK_SUBDIR) {
         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') {
     stage('Build') {
       steps {
       steps {
         dir(env.WORK_SUBDIR) {
         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'
         }
         }
       }
       }
     }
     }