Skip to content

Commit 8ad3cdf

Browse files
updated
1 parent 23fa116 commit 8ad3cdf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/LCT.Common/CommonHelper.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,17 +304,18 @@ private static string Sw360URL(string sw360Env, string releaseId)
304304
string sw360URL = $"{sw360Env}{"/group/guest/components/-/component/release/detailRelease/"}{releaseId}";
305305
return sw360URL;
306306
}
307+
/// <summary>
308+
/// Upload the Logs to the pipeline
309+
/// </summary>
307310
private static void UploadLogs()
308311
{
309312
EnvironmentType envType = RuntimeEnvironment.GetEnvironment();
310313
if (envType == EnvironmentType.AzurePipeline && !string.IsNullOrEmpty(Log4Net.CatoolLogPath) && File.Exists(Log4Net.CatoolLogPath))
311314
{
312-
//Logger.Logger.Log(null, Level.Notice, $"##vso[artifact.upload containerfolder={LogContainerFolderName};artifactname={LogArtifactFolderName}]{Log4Net.CatoolLogPath}", null);
313315
Console.WriteLine($"##vso[artifact.upload containerfolder={LogContainerFolderName};artifactname={LogArtifactFolderName}]{Log4Net.CatoolLogPath}");
314316
}
315317
else if (envType == EnvironmentType.Unknown)
316318
{
317-
//Console.WriteLine("Uploading of SBOM and the logs are not supported.");
318319
Logger.Logger.Log(null, Level.Notice, $"Uploading of logs is not supported.", null);
319320
}
320321

@@ -331,8 +332,8 @@ private static void UploadBom()
331332
Console.WriteLine($"##vso[artifact.upload containerfolder={BomContainerFolderName};artifactname={BomArtifactFolderName}]{FileOperations.CatoolBomFilePath}");
332333
}
333334
else if (envType == EnvironmentType.Unknown)
334-
{
335-
Console.WriteLine("Uploading of SBOM is not supported.");
335+
{
336+
Logger.Logger.Log(null, Level.Notice, $"Uploading of SBOM is not supported.", null);
336337
}
337338

338339
}

0 commit comments

Comments
 (0)