Skip to content

Commit f9cade3

Browse files
committed
fix gl
1 parent cfe5a31 commit f9cade3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cml.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class CML {
271271
};
272272

273273
await getDriver(this).runnerParseLog({ data, log });
274+
274275
if (!log.status) return;
275276

276277
log.level = log.success ? 'info' : 'error';

src/drivers/github.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ class Github {
341341
} else if (data.includes('Listening for Jobs')) {
342342
log.status = 'ready';
343343
}
344-
345-
return log;
346344
}
347345

348346
parseRunner(runner) {

src/drivers/gitlab.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,12 @@ class Gitlab {
248248

249249
runnerParseLog({ data, log }) {
250250
const { msg, job, duration_s: duration } = JSON.parse(data);
251-
log = { ...log, job };
252251

253252
if (msg.endsWith('received')) {
253+
log.job = job;
254254
log.status = 'job_started';
255255
} else if (duration) {
256+
log.job = job;
256257
log.status = 'job_ended';
257258
log.success = msg.includes('Job succeeded');
258259
} else if (msg.includes('Starting runner for')) {

0 commit comments

Comments
 (0)