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