Log if retained workspace option is present for testing

pull/461/head
Frostebite 2022-10-04 23:39:24 +01:00
parent e915e057ea
commit 995f794dc4
3 changed files with 15 additions and 1 deletions

7
dist/index.js vendored
View File

@ -4204,9 +4204,16 @@ class RemoteClient {
} }
static runRemoteClientJob() { static runRemoteClientJob() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
RemoteClient.handleRetainedWorkspace();
yield RemoteClient.bootstrapRepository(); yield RemoteClient.bootstrapRepository();
}); });
} }
static handleRetainedWorkspace() {
if (process.env.LOCKED_WORKSPACE === undefined) {
return;
}
remote_client_logger_1.RemoteClientLogger.log(`Retained Workspace: ${process.env.LOCKED_WORKSPACE}`);
}
} }
__decorate([ __decorate([
cli_functions_repository_1.CliFunction(`remote-cli`, `sets up a repository, usually before a game-ci build`) cli_functions_repository_1.CliFunction(`remote-cli`, `sets up a repository, usually before a game-ci build`)

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -104,6 +104,13 @@ export class RemoteClient {
@CliFunction(`remote-cli`, `sets up a repository, usually before a game-ci build`) @CliFunction(`remote-cli`, `sets up a repository, usually before a game-ci build`)
static async runRemoteClientJob() { static async runRemoteClientJob() {
RemoteClient.handleRetainedWorkspace();
await RemoteClient.bootstrapRepository(); await RemoteClient.bootstrapRepository();
} }
static handleRetainedWorkspace() {
if (process.env.LOCKED_WORKSPACE === undefined) {
return;
}
RemoteClientLogger.log(`Retained Workspace: ${process.env.LOCKED_WORKSPACE}`);
}
} }