fix: 使用 bat+python 重新配置编码,tar+scp 部署

这个提交包含在:
xuqm 2026-07-09 15:42:55 +08:00
父节点 26d6fbfe36
当前提交 5758f5ba07

10
Jenkinsfile vendored
查看文件

@ -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'])"
'''
}
}