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("");