Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions deployment/cake/generic-variables.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down Expand Up @@ -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());
}
}

Expand Down
7 changes: 7 additions & 0 deletions deployment/cake/lib-generic.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down