提问
如何Jenkins发布NetCore程序
回答
cd BluePig
taskkill /F /im BluePig.exe
nssm stop BluePig
nssm remove BluePig confirm
del /s /f /q publish
dotnet restore
dotnet build
dotnet publish -c Release -r win-x86 -o ./publish --self-contained true
nssm install BluePig "C:\ProgramData\Jenkins\.jenkins\workspace\BluePig\BluePig\publish/BluePig.exe"
nssm start BluePig
标签:nssm,NetCore,程序,publish,BluePig,dotnet,Jenkins
From: https://www.cnblogs.com/wuhailong/p/17118632.html