You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Cake 4.0.0 which is running as part of the TeamCity build (Powershell runner) on Windows Server 2022-based TeamCity agents. We have functionality that cancels a TeamCity build (kills the Cake process) when the new commit is pushed into the PR. In case the build is canceled in the middle of the addins/tools restoration (this is my guess):
the Nuget cache can be broken which is reflected by the exceptions for each new build on the same agent:
(The issue is not always related to the library "System.Security.Cryptography.Pkcs", it can be any other library.)
So, the only way to fix this issue is to manually clear Nuget cache on the agent side or kill the agent so it will be recreated from scratch.
Is it possible to handle such exceptions in an automated way?
I use nuget.commandline 6.9.1 (preisntalled on the TeamCity agent side, not using Cake).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use Cake 4.0.0 which is running as part of the TeamCity build (Powershell runner) on Windows Server 2022-based TeamCity agents. We have functionality that cancels a TeamCity build (kills the Cake process) when the new commit is pushed into the PR. In case the build is canceled in the middle of the addins/tools restoration (this is my guess):


the Nuget cache can be broken which is reflected by the exceptions for each new build on the same agent:
(The issue is not always related to the library "System.Security.Cryptography.Pkcs", it can be any other library.)
So, the only way to fix this issue is to manually clear Nuget cache on the agent side or kill the agent so it will be recreated from scratch.
Is it possible to handle such exceptions in an automated way?
I use nuget.commandline 6.9.1 (preisntalled on the TeamCity agent side, not using Cake).
Beta Was this translation helpful? Give feedback.
All reactions