Skip to content

Commit

Permalink
pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
ragavareddychalapala committed Jul 23, 2024
1 parent 55e9053 commit 5665586
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/LCT.PackageIdentifier/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5665586

Please sign in to comment.