diff --git a/src/LCT.Common/CommonHelper.cs b/src/LCT.Common/CommonHelper.cs index d4f8cef4..7901a76d 100644 --- a/src/LCT.Common/CommonHelper.cs +++ b/src/LCT.Common/CommonHelper.cs @@ -255,11 +255,10 @@ public static void CallEnvironmentExit(int code) { if (code == -1) { + Publish artifactPublisher = new Publish(Log4Net.CatoolLogPath, FileOperations.CatoolBomFilePath); + artifactPublisher.UploadLogs(); EnvironmentExit(code); } - PublishFilesToArtifact(); - EnvironmentExit(code); - } public static void EnvironmentExit(int exitCode)