From 5758f5ba078f2b562ac131a8b130d88f565c0386 Mon Sep 17 00:00:00 2001 From: xuqm Date: Thu, 9 Jul 2026 15:42:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20bat+python=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E9=85=8D=E7=BD=AE=E7=BC=96=E7=A0=81=EF=BC=8C?= =?UTF-8?q?tar+scp=20=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2c5d4cc..bd501dd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,12 +16,10 @@ pipeline { stage('Build Docs') { steps { - powershell ''' - [System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8 - $env:PYTHONIOENCODING = 'utf-8' - $env:PYTHONUTF8 = '1' - pip3 install mkdocs-material --quiet 2>$null || Write-Host 'ok' - python -X utf8 -m mkdocs build --clean --site-dir site + bat ''' + chcp 65001 > nul + pip3 install mkdocs-material --quiet + python -c "import sys; sys.stdout.reconfigure(encoding='utf-8'); import subprocess; subprocess.run([sys.executable, '-X', 'utf8', '-m', 'mkdocs', 'build', '--clean', '--site-dir', 'site'])" ''' } }