Skip to content

Commit 122add2

Browse files
committed
added error logging
1 parent 4265865 commit 122add2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build/utils.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void DockerBuild(GitVersion gitVersion, string platform, string variant, bool is
169169
Tag = tags,
170170
File = $"{workDir}/Dockerfile",
171171
BuildArg = new []{ $"contentFolder=/content" },
172-
Pull = true,
172+
// Pull = true,
173173
// Platform = platform // TODO this one is not supported on docker versions < 18.02
174174
};
175175

run.cake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ Task("Release-Notes")
415415
Task("Publish-AppVeyor")
416416
.WithCriteria(() => parameters.IsRunningOnWindows, "Publish-AppVeyor works only on Windows agents.")
417417
.WithCriteria(() => parameters.IsRunningOnAppVeyor, "Publish-AppVeyor works only on AppVeyor.")
418-
.WithCriteria(() => parameters.IsStableRelease() || parameters.IsPreRelease() || parameters.EnabledPullRequestPublish, "Publish-AppVeyor works only for releases.")
419418
.IsDependentOn("Pack")
420419
.IsDependentOn("Release-Notes")
421420
.Does(() =>
@@ -433,13 +432,13 @@ Task("Publish-AppVeyor")
433432
.OnError(exception =>
434433
{
435434
Information("Publish-AppVeyor Task failed, but continuing with next Task...");
435+
Error(exception.Dump());
436436
publishingError = true;
437437
});
438438

439439
Task("Publish-AzurePipeline")
440440
.WithCriteria(() => parameters.IsRunningOnWindows, "Publish-AzurePipeline works only on Windows agents.")
441441
.WithCriteria(() => parameters.IsRunningOnAzurePipeline, "Publish-AzurePipeline works only on AzurePipeline.")
442-
.WithCriteria(() => parameters.IsStableRelease() || parameters.IsPreRelease(), "Publish-AzurePipeline works only for releases.")
443442
.IsDependentOn("Pack")
444443
.IsDependentOn("Release-Notes")
445444
.Does(() =>
@@ -456,6 +455,7 @@ Task("Publish-AzurePipeline")
456455
.OnError(exception =>
457456
{
458457
Information("Publish-AzurePipeline Task failed, but continuing with next Task...");
458+
Error(exception.Dump());
459459
publishingError = true;
460460
});
461461

@@ -485,6 +485,7 @@ Task("Publish-Tfs")
485485
.OnError(exception =>
486486
{
487487
Information("Publish-Tfs Task failed, but continuing with next Task...");
488+
Error(exception.Dump());
488489
publishingError = true;
489490
});
490491

@@ -512,6 +513,7 @@ Task("Publish-Gem")
512513
.OnError(exception =>
513514
{
514515
Information("Publish-Gem Task failed, but continuing with next Task...");
516+
Error(exception.Dump());
515517
publishingError = true;
516518
});
517519

@@ -552,6 +554,7 @@ Task("Publish-DockerHub")
552554
.OnError(exception =>
553555
{
554556
Information("Publish-DockerHub Task failed, but continuing with next Task...");
557+
Error(exception.Dump());
555558
publishingError = true;
556559
});
557560

@@ -589,6 +592,7 @@ Task("Publish-NuGet")
589592
.OnError(exception =>
590593
{
591594
Information("Publish-NuGet Task failed, but continuing with next Task...");
595+
Error(exception.Dump());
592596
publishingError = true;
593597
});
594598

@@ -627,6 +631,7 @@ Task("Publish-Chocolatey")
627631
.OnError(exception =>
628632
{
629633
Information("Publish-Chocolatey Task failed, but continuing with next Task...");
634+
Error(exception.Dump());
630635
publishingError = true;
631636
});
632637

0 commit comments

Comments
 (0)