fixes
parent
512cd41881
commit
2973cc643f
|
@ -4276,6 +4276,7 @@ class RemoteClient {
|
||||||
static async runCustomHookFiles(hookLifecycle) {
|
static async runCustomHookFiles(hookLifecycle) {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`RunCustomHookFiles: ${hookLifecycle}`);
|
remote_client_logger_1.RemoteClientLogger.log(`RunCustomHookFiles: ${hookLifecycle}`);
|
||||||
const gameCiCustomHooksPath = node_path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathAbsolute, `game-ci`, `hooks`);
|
const gameCiCustomHooksPath = node_path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.repoPathAbsolute, `game-ci`, `hooks`);
|
||||||
|
try {
|
||||||
const files = node_fs_1.default.readdirSync(gameCiCustomHooksPath);
|
const files = node_fs_1.default.readdirSync(gameCiCustomHooksPath);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const fileContents = node_fs_1.default.readFileSync(node_path_1.default.join(gameCiCustomHooksPath, file), `utf8`);
|
const fileContents = node_fs_1.default.readFileSync(node_path_1.default.join(gameCiCustomHooksPath, file), `utf8`);
|
||||||
|
@ -4286,6 +4287,10 @@ class RemoteClient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (error) {
|
||||||
|
remote_client_logger_1.RemoteClientLogger.log(JSON.stringify(error, undefined, 4));
|
||||||
|
}
|
||||||
|
}
|
||||||
static async handleRetainedWorkspace() {
|
static async handleRetainedWorkspace() {
|
||||||
if (!cloud_runner_1.default.buildParameters.retainWorkspace) {
|
if (!cloud_runner_1.default.buildParameters.retainWorkspace) {
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -139,6 +139,7 @@ export class RemoteClient {
|
||||||
static async runCustomHookFiles(hookLifecycle: string) {
|
static async runCustomHookFiles(hookLifecycle: string) {
|
||||||
RemoteClientLogger.log(`RunCustomHookFiles: ${hookLifecycle}`);
|
RemoteClientLogger.log(`RunCustomHookFiles: ${hookLifecycle}`);
|
||||||
const gameCiCustomHooksPath = path.join(CloudRunnerFolders.repoPathAbsolute, `game-ci`, `hooks`);
|
const gameCiCustomHooksPath = path.join(CloudRunnerFolders.repoPathAbsolute, `game-ci`, `hooks`);
|
||||||
|
try {
|
||||||
const files = fs.readdirSync(gameCiCustomHooksPath);
|
const files = fs.readdirSync(gameCiCustomHooksPath);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const fileContents = fs.readFileSync(path.join(gameCiCustomHooksPath, file), `utf8`);
|
const fileContents = fs.readFileSync(path.join(gameCiCustomHooksPath, file), `utf8`);
|
||||||
|
@ -148,6 +149,9 @@ export class RemoteClient {
|
||||||
await CloudRunnerSystem.Run(fileContentsObject.commands);
|
await CloudRunnerSystem.Run(fileContentsObject.commands);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
RemoteClientLogger.log(JSON.stringify(error, undefined, 4));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
static async handleRetainedWorkspace() {
|
static async handleRetainedWorkspace() {
|
||||||
if (!CloudRunner.buildParameters.retainWorkspace) {
|
if (!CloudRunner.buildParameters.retainWorkspace) {
|
||||||
|
|
Loading…
Reference in New Issue