From a4d612d03f3be76c4c3cc145b4cda8753a39353c Mon Sep 17 00:00:00 2001 From: Mohamed Bilel Besrour Date: Wed, 4 Dec 2024 20:33:46 +0100 Subject: [PATCH] logging --- .../buildagent/service/BuildJobExecutionService.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/de/tum/cit/aet/artemis/buildagent/service/BuildJobExecutionService.java b/src/main/java/de/tum/cit/aet/artemis/buildagent/service/BuildJobExecutionService.java index 7c789cfafb28..91a86ae466d0 100644 --- a/src/main/java/de/tum/cit/aet/artemis/buildagent/service/BuildJobExecutionService.java +++ b/src/main/java/de/tum/cit/aet/artemis/buildagent/service/BuildJobExecutionService.java @@ -300,10 +300,18 @@ private BuildResult runScriptAndParseResults(BuildJobQueueItem buildJob, String ZonedDateTime buildCompletedDate = ZonedDateTime.now(); + msg = "~~~~~~~~~~~~~~~~~~~~ Moving test results to specified directory ~~~~~~~~~~~~~~~~~~~~"; + buildLogsMap.appendBuildLogEntry(buildJob.id(), msg); + log.debug(msg); + buildJobContainerService.moveResultsToSpecifiedDirectory(containerId, buildJob.buildConfig().resultPaths(), LOCALCI_WORKING_DIRECTORY + LOCALCI_RESULTS_DIRECTORY); // Get an input stream of the test result files. + msg = "~~~~~~~~~~~~~~~~~~~~ Collecting test results from container ~~~~~~~~~~~~~~~~~~~~"; + buildLogsMap.appendBuildLogEntry(buildJob.id(), msg); + log.info(msg); + TarArchiveInputStream testResultsTarInputStream; try {