diff --git a/Program.cs b/Program.cs index f7b78d4..fcc8684 100644 --- a/Program.cs +++ b/Program.cs @@ -22,14 +22,17 @@ using Docker.DotNet; private static string ticketNumber; public static string FolderPath; + //date of today + public readonly static DateTime datetoday = DateTime.Now; + public readonly static string todayDateInline = datetoday.ToString("yyyyMMdd"); + //static void CompressFolder(string sourceFolder,string destinationFolder, string sourceTarget, string filenameTarget) static void CompressFolder(string sourceFolder,string destinationFolder, Dictionary sourceTargets) { - //string compressionTarget = Path.Combine(sourceFolder, sourceTarget); //string destinationPath = Path.Combine(destinationFolder, filenameTarget); - string destinationPath = Path.Combine(destinationFolder, "artefacts-"+ticketNumber+".zip"); + string destinationPath = Path.Combine(destinationFolder, "artefacts-"+ticketNumber+"-"+todayDateInline+".zip"); //for debug pruposes @@ -189,9 +192,12 @@ using Docker.DotNet; CompressFolder(sourceFolder:applicationPath,destinationFolder:FolderPath,SoftwareList); + //Add a pause after everything is completed + Console.WriteLine("=================================================="); + Console.WriteLine("Copy done"); + Console.WriteLine("=================================================="); - - + Console.ReadLine(); } }