From 3a735eeba0e89a56550a87d38dbbb7ff67facd46 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Thu, 7 Sep 2023 23:01:09 +0200 Subject: [PATCH 1/3] fix(execution): fallback to logging debug messages in Docker target execution --- .../Tools/Docker/DockerTargetDefinitionExtensions.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs b/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs index aafad5c1e..bfd4a58a3 100644 --- a/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs +++ b/source/Nuke.Common/Tools/Docker/DockerTargetDefinitionExtensions.cs @@ -118,7 +118,17 @@ bool IsUpToDate() => build.BuildAssemblyDirectory.GlobFiles("*.dll") $"--{ParameterService.GetParameterDashedName(Constants.SkippedTargetsParameterName)}" }.Concat(settings.Args)) .DisableProcessLogInvocation() - .SetProcessLogger((_, message) => Log.Write(LogEventReader.ReadFromString(message)))); + .SetProcessLogger((_, message) => + { + try + { + Log.Write(LogEventReader.ReadFromString(message)); + } + catch + { + Log.Debug(message); + } + })); } finally { From 7181afe523d4cb9861234919638025ce7c7d2b9d Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 24 Sep 2023 23:27:00 +0200 Subject: [PATCH 2/3] chore: update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 291edea78..c72ec0a8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [vNext] +- Fixed logging of Docker target execution to fall back to debug messages ## [7.0.5] / 2023-09-05 - Fixed filtering environment variables with newlines in Docker target execution From f6da8165e6568f47e4785c5fb9bc308e0af0da20 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 24 Sep 2023 23:28:46 +0200 Subject: [PATCH 3/3] chore: CHANGELOG.md for 7.0.6 --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c72ec0a8c..5452f0d1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [vNext] + +## [7.0.6] / 2023-09-24 - Fixed logging of Docker target execution to fall back to debug messages ## [7.0.5] / 2023-09-05 @@ -1101,7 +1103,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added CLT tasks for Git - Fixed background color in console output -[vNext]: https://github.com/nuke-build/nuke/compare/7.0.5...HEAD +[vNext]: https://github.com/nuke-build/nuke/compare/7.0.6...HEAD +[7.0.6]: https://github.com/nuke-build/nuke/compare/7.0.5...7.0.6 [7.0.5]: https://github.com/nuke-build/nuke/compare/7.0.4...7.0.5 [7.0.4]: https://github.com/nuke-build/nuke/compare/7.0.3...7.0.4 [7.0.3]: https://github.com/nuke-build/nuke/compare/7.0.2...7.0.3