Skip to content

Commit

Permalink
added error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Oct 3, 2018
1 parent 4265865 commit 122add2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/utils.cake
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void DockerBuild(GitVersion gitVersion, string platform, string variant, bool is
Tag = tags,
File = $"{workDir}/Dockerfile",
BuildArg = new []{ $"contentFolder=/content" },
Pull = true,
// Pull = true,
// Platform = platform // TODO this one is not supported on docker versions < 18.02
};

Expand Down
9 changes: 7 additions & 2 deletions run.cake
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ Task("Release-Notes")
Task("Publish-AppVeyor")
.WithCriteria(() => parameters.IsRunningOnWindows, "Publish-AppVeyor works only on Windows agents.")
.WithCriteria(() => parameters.IsRunningOnAppVeyor, "Publish-AppVeyor works only on AppVeyor.")
.WithCriteria(() => parameters.IsStableRelease() || parameters.IsPreRelease() || parameters.EnabledPullRequestPublish, "Publish-AppVeyor works only for releases.")
.IsDependentOn("Pack")
.IsDependentOn("Release-Notes")
.Does(() =>
Expand All @@ -433,13 +432,13 @@ Task("Publish-AppVeyor")
.OnError(exception =>
{
Information("Publish-AppVeyor Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Task("Publish-AzurePipeline")
.WithCriteria(() => parameters.IsRunningOnWindows, "Publish-AzurePipeline works only on Windows agents.")
.WithCriteria(() => parameters.IsRunningOnAzurePipeline, "Publish-AzurePipeline works only on AzurePipeline.")
.WithCriteria(() => parameters.IsStableRelease() || parameters.IsPreRelease(), "Publish-AzurePipeline works only for releases.")
.IsDependentOn("Pack")
.IsDependentOn("Release-Notes")
.Does(() =>
Expand All @@ -456,6 +455,7 @@ Task("Publish-AzurePipeline")
.OnError(exception =>
{
Information("Publish-AzurePipeline Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down Expand Up @@ -485,6 +485,7 @@ Task("Publish-Tfs")
.OnError(exception =>
{
Information("Publish-Tfs Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down Expand Up @@ -512,6 +513,7 @@ Task("Publish-Gem")
.OnError(exception =>
{
Information("Publish-Gem Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down Expand Up @@ -552,6 +554,7 @@ Task("Publish-DockerHub")
.OnError(exception =>
{
Information("Publish-DockerHub Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down Expand Up @@ -589,6 +592,7 @@ Task("Publish-NuGet")
.OnError(exception =>
{
Information("Publish-NuGet Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down Expand Up @@ -627,6 +631,7 @@ Task("Publish-Chocolatey")
.OnError(exception =>
{
Information("Publish-Chocolatey Task failed, but continuing with next Task...");
Error(exception.Dump());
publishingError = true;
});

Expand Down

0 comments on commit 122add2

Please sign in to comment.