1.jenkins所在的服务器 本地部署项目
a。新建item
b.选择 freestyle project 输入名称
c. 该item 配置 git仓库 以及身份认证(git的账号密码),指定分支
d.配置命令
cd ./JCK.Web/JCK.WechatApi
dotnet clean
dotnet build
dotnet publish -p:PublishDir=D:\SoftWare\Jenkins_Home\pubsite\tiktokapi
2.再添加个构建命令 都是windows batch command
C:\Windows\System32\inetsrv\appcmd.exe stop apppool /apppool.name:TikTokApi
xcopy D:\SoftWare\Jenkins_Home\pubsite\tiktokapi D:\wwwroot\tiktokapi /E /D /Y
C:\Windows\System32\inetsrv\appcmd.exe start apppool /apppool.name:TikTokApi
标签:pubsite,apppool,代码,tiktokapi,服务器,Jenkins,jenkins From: https://www.cnblogs.com/kaikaichao/p/16963930.html