From 5665586b2c3d7c2bf7d0133e384d7e2b17e4fc0f Mon Sep 17 00:00:00 2001 From: Chalapala RaghavendraReddy Date: Tue, 23 Jul 2024 19:59:13 +0530 Subject: [PATCH] pushed --- src/LCT.PackageIdentifier/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/LCT.PackageIdentifier/Program.cs b/src/LCT.PackageIdentifier/Program.cs index cc9b7c01..9e9609ff 100644 --- a/src/LCT.PackageIdentifier/Program.cs +++ b/src/LCT.PackageIdentifier/Program.cs @@ -26,6 +26,8 @@ using LCT.APICommunications.Model; using System.Linq; using System.IO.Compression; +using System.DirectoryServices.ActiveDirectory; +using System.Drawing.Drawing2D; namespace LCT.PackageIdentifier @@ -106,6 +108,7 @@ static async Task Main(string[] args) await bomCreator.GenerateBom(appSettings, new BomHelper(), new FileOperations(),projectReleases); } Logger.Logger.Log(null, Level.Notice, $"End of Package Identifier execution : {DateTime.Now}\n", null); + string logFilePath = Path.GetFullPath(Path.Combine(FolderPath, FileConstant.BomCreatorLog)); PublishLogfiles(logFilePath); //PublishSampleZipFolder(); @@ -175,9 +178,9 @@ public static void PublishLogfiles(string logFolderPath) // Define Azure DevOps/VSTS artifact upload parameters string containerFolder = "Container"; // Replace with your desired container folder string artifactName = "MyArtifact"; // Replace with your artifact name - + string filepath = "$(Build.SourcesDirectory)/Logs/PacakgeIdentifier.log"; // Output the artifact upload command - Console.WriteLine($"##vso[artifact.upload containerfolder={containerFolder};artifactname={artifactName}]{Path.GetFullPath(logFolderPath)}"); + Console.WriteLine($"##vso[artifact.upload containerfolder={containerFolder};artifactname={artifactName}]{filepath}"); } catch (Exception ex)