From d20f833698741e57beca4c445e3ee712735bdde4 Mon Sep 17 00:00:00 2001 From: Geert van Horrik Date: Wed, 17 Dec 2025 12:44:44 +0100 Subject: [PATCH] GitHubSync update --- deployment/cake/generic-variables.cake | 8 ++++++-- deployment/cake/lib-generic.cake | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/deployment/cake/generic-variables.cake b/deployment/cake/generic-variables.cake index 077da909..9366a152 100644 --- a/deployment/cake/generic-variables.cake +++ b/deployment/cake/generic-variables.cake @@ -95,6 +95,8 @@ public class VersionContext : BuildContextBase CakeContext.Information("Mutex acquired"); + CakeContext.Information("[{0}] Preparing GitVersion", GetTime()); + var gitDirectory = ".git"; if (!CakeContext.DirectoryExists(gitDirectory)) { @@ -234,10 +236,12 @@ public class VersionContext : BuildContextBase gitVersionSettings.WorkingDirectory = dynamicRepositoryPath; } - - CakeContext.Information("Running GitVersion"); + + CakeContext.Information("[{0}] Running GitVersion", GetTime()); _gitVersionContext = CakeContext.GitVersion(gitVersionSettings); + + CakeContext.Information("[{0}] Finished GitVersion", GetTime()); } } diff --git a/deployment/cake/lib-generic.cake b/deployment/cake/lib-generic.cake index 1532b9e1..7033d9c2 100644 --- a/deployment/cake/lib-generic.cake +++ b/deployment/cake/lib-generic.cake @@ -207,6 +207,13 @@ public enum TargetType //------------------------------------------------------------- +private static string GetTime() +{ + return DateTime.Now.ToString("HH:mm:ss.fff"); +} + +//------------------------------------------------------------- + private static void LogSeparator(this ICakeContext cakeContext, string messageFormat, params object[] args) { cakeContext.Information("");