.net core 本地 iis build & deploy
cd "%WORKSPACE%jenkinsTest" dotnet publish -o "D:jenkinspublish\%JOB_NAME%\%BUILD_NUMBER%" C:WindowsSystem32inetsrvappcmd.exe stop apppool /apppool.name:"netcore" xcopy "D:jenkinspublish\%JOB_NAME%\%BUILD_NUMBER%" "D:WebSiteAppService" /s/e/y/exclude:D:jenkinsexclude.txt C:WindowsSystem32inetsrvappcmd.exe start apppool /apppool.name:"netcore"
控制台中文乱码解决办法
windows 系统环境变量添加
JAVA_TOOL_OPTIONS
-Dfile.encoding=UTF-8
运行时解决乱码
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 CHCP 65001