diff --git a/testrunner/src/testrunners/docker-testrunner.js b/testrunner/src/testrunners/docker-testrunner.js index e797abd..6903c47 100644 --- a/testrunner/src/testrunners/docker-testrunner.js +++ b/testrunner/src/testrunners/docker-testrunner.js @@ -103,6 +103,7 @@ export default async function runJob(job) { }; } catch (error) { logger.error('Failed to execute job: %s', error.message, job.data.url); + job.log('Job failed:' + error.message); await cleanupWorkingDirectory(workingDirectory, logger); throw error; } diff --git a/testrunner/src/testrunners/testrunner.js b/testrunner/src/testrunners/testrunner.js index 953f2bc..ccffbdc 100644 --- a/testrunner/src/testrunners/testrunner.js +++ b/testrunner/src/testrunners/testrunner.js @@ -64,6 +64,7 @@ export default async function runJob(job) { } } catch (error) { logger.error('Job execution failed: %s', error.message); + job.log('Job failed:' + error.message); throw error; } finally { if (workingDirectory) {