.net core jenkins项目发布配置
http://10.0.0.2/customproject/newbek.git
H/2 * * * *
发布指令demo1:
停止IIS的进程
C:\Windows\System32\inetsrv\appcmd.exe stop apppool /apppool.name:NcpTraceAdmin
cd "%WORKSPACE%\Siia.AdminWeb\"
dotnet publish -c release -p:PublishDir=C:\Web\NcpTrace\AdminWeb
C:\Windows\System32\inetsrv\appcmd.exe start apppool /apppool.name:NcpTraceAdmin
Demo2
cd "%WORKSPACE%\Siia.AdminWeb\"
dotnet publish -c release -p:PublishDir=F:\发布\newbekaripubjenkins