mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
hashed logging k8s
This commit is contained in:
parent
cc57addcc7
commit
df456df645
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -3,8 +3,6 @@ import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import CloudRunner from '../cloud-runner';
|
||||
import CloudRunnerOptions from '../options/cloud-runner-options';
|
||||
import { CloudRunnerSystem } from '../services/core/cloud-runner-system';
|
||||
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
|
||||
const md5 = require('md5');
|
||||
|
||||
export class RemoteClientLogger {
|
||||
@ -56,9 +54,7 @@ export class RemoteClientLogger {
|
||||
|
||||
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||
|
||||
process.chdir('/home/');
|
||||
hashedLogs = await CloudRunnerSystem.Run(`md5sum job-log.txt`);
|
||||
process.chdir(CloudRunnerFolders.projectPathAbsolute);
|
||||
hashedLogs = md5(hashedLogs);
|
||||
|
||||
for (let index = 0; index < 3; index++) {
|
||||
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
|
||||
|
Loading…
Reference in New Issue
Block a user