簡體   English   中英

TeamCity多次發布NuGet軟件包

[英]TeamCity publishes NuGet package multiple times

我有一個TeamCity項目,該項目可以構建C#.NET解決方案並可以構建NuGet程序包以進行部署。 然后,步驟之一將NuGet包發布到Octopus Deploy庫存儲庫。 由於某種原因,我的TeamCity項目將NuGet軟件包推送到Octopus庫存儲庫中已有18次。 我擴大了顯示細節的第一手資料。

[13:52:56]Step 3/5: Publish Nuget Package (NuGet Publish) (3m:24s)
[13:52:56][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.20520.nupkg (13s)
[13:52:56][push] NuGet command: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe push C:\DEVONLINE\IRM\Main\MyWebProject\MyWebProject\bin\MyWebProject.2.19.5627.20520.nupkg %%teamcity_nuget_api_key_1433181176848%% -Source http://localhost:8024/nuget/packages
[13:52:56][push] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script3530589901220837023.cmd
[13:52:56][push] in directory: C:\DEVONLINE\Main\MyWebProject\bin
[13:52:56][push] JetBrains TeamCity NuGet Runner 8.0.32060.9
[13:52:56][push] Registered additional extensions from paths: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\plugins-2.8
[13:52:56][push] Starting NuGet.exe 2.8.50926.602 from C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe
[13:52:57][push] Pushing MyWebProject 2.19.5627.20520 to 'http://localhost:8024/nuget/packages'...
[13:53:10][push] Your package was pushed.
[13:53:10][push] Process exited with code 0
[13:53:10][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.21133.nupkg (12s)
[13:53:23][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.21281.nupkg (5s)
[13:53:28][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.21680.nupkg (14s)
[13:53:42][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.21777.nupkg (12s)
[13:53:55][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.23661.nupkg (6s)
[13:54:02][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.23808.nupkg (12s)
[13:54:14][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.24431.nupkg (13s)
[13:54:28][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.25366.nupkg (6s)
[13:54:34][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.25732.nupkg (15s)
[13:54:49][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.26132.nupkg (13s)
[13:55:02][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.26469.nupkg (6s)
[13:55:09][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5627.26890.nupkg (13s)
[13:55:23][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5630.18299.nupkg (7s)
[13:55:30][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5630.18837.nupkg (8s)
[13:55:39][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5630.20862.nupkg (17s)
[13:55:56][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5630.22872.nupkg (7s)
[13:56:03][Step 3/5] push: Publish package MyWebProject\bin\MyWebProject.2.19.5630.23126.nupkg (17s)

我的Sln總共包含14個項目。 是什么原因導致NuGet包被多次推入八達通庫?

您發布的日志文件包含您所需要的信息,這是消除了一些干擾的更新版本...讓您的眼睛望向以星號標記的列中的軟件包名稱。

---------------------*****------------
[13:53:10] 2.19.5627.21133.nupkg (12s)
[13:53:23] 2.19.5627.21281.nupkg (5s)
[13:53:28] 2.19.5627.21680.nupkg (14s)
[13:53:42] 2.19.5627.21777.nupkg (12s)
[13:53:55] 2.19.5627.23661.nupkg (6s)
[13:54:02] 2.19.5627.23808.nupkg (12s)
[13:54:14] 2.19.5627.24431.nupkg (13s)
[13:54:28] 2.19.5627.25366.nupkg (6s)
[13:54:34] 2.19.5627.25732.nupkg (15s)
[13:54:49] 2.19.5627.26132.nupkg (13s)
[13:55:02] 2.19.5627.26469.nupkg (6s)
[13:55:09] 2.19.5627.26890.nupkg (13s)
[13:55:23] 2.19.5630.18299.nupkg (7s)
[13:55:30] 2.19.5630.18837.nupkg (8s)
[13:55:39] 2.19.5630.20862.nupkg (17s)
[13:55:56] 2.19.5630.22872.nupkg (7s)
[13:56:03] 2.19.5630.23126.nupkg (17s)

您可以使用Team City的clean checkout選項在每次獲取源時刪除舊版本來解決此問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM