Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
(build) Continue and ignore package publishing failures
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Jun 10, 2020
1 parent 0c85c51 commit 2119b5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/publishing.cake
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ var publishChocolateyPackagesTask = Task("Publish-ChocolateyPackages")
Source = EnvironmentVariable("CHOCOLATEY_SOURCE"),
ApiKey = EnvironmentVariable("CHOCOLATEY_API_KEY"),
});
}).OnError(exception =>
{
Warning("Publishing Chocolatey package failed. Ignoring and continuing with other tasks");
});

var publishNuGetPackagesTask = Task("Publish-NuGetPackages")
Expand All @@ -116,6 +119,9 @@ var publishNuGetPackagesTask = Task("Publish-NuGetPackages")
ApiKey = EnvironmentVariable("NUGET_API_KEY"),
SkipDuplicate = true,
});
}).OnError(exception =>
{
Warning("Publishing NuGet package failed. Ignoring and continuing with other tasks");
});

var publishDotNetToolTask = Task("Publish-DotNetToolPackage")
Expand All @@ -133,6 +139,9 @@ var publishDotNetToolTask = Task("Publish-DotNetToolPackage")
Source = EnvironmentVariable("NUGET_SOURCE"),
ApiKey = EnvironmentVariable("NUGET_API_KEY"),
});
}).OnError(exception =>
{
Warning("Publishing .NET Core Tool package failed. Ignoring and continuing with other tasks");
});

var publishGitHubReleaseTask = Task("Publish-GitHubRelease")
Expand Down

0 comments on commit 2119b5c

Please sign in to comment.