From 10819358c2d165ce1edc9d6a41f6e5deba407b18 Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:31:37 -0800 Subject: [PATCH] DOP-4401 testing logger --- src/job/jobHandler.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index 38dc81868..c4c70e5dd 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -152,15 +152,15 @@ export abstract class JobHandler { const pathPrefix = await this.getPathPrefix(); // TODO: Can empty string check be removed? if (pathPrefix || pathPrefix === '') { - this.currJob.payload.pathPrefix = pathPrefix; + this._logger.save(this.currJob._id, 'Path prefix raw' + pathPrefix); + this.currJob.payload.pathPrefix = pathPrefix + '/customprefix'; const mutPrefix = pathPrefix.split(`/${server_user}`)[0]; - if (this.currJob?.payload?.newHead && this.currJob?.title !== 'Merge to main') { - this._logger.save(this.currJob._id, `Testing7 Commit Hash: ${this.currJob?.payload?.newHead}`); - } - this._logger.save(this.currJob._id, `Testing7 Commit Hash: ${this.currJob?.payload?.newHead}`); - this._logger.save(this.currJob._id, 'MUT PREFIX9: ' + mutPrefix.split('/')[0]) + mutPrefix.split('/')[1]; - this.currJob.payload.mutPrefix = mutPrefix + 'customprefix'; - this._logger.save(this.currJob._id, 'CurrJob6 mutprefix' + this.currJob.mutPrefix); + this._logger.save(this.currJob._id, 'MUT PREFIX9: ' + mutPrefix.split('/')[0]) + + mutPrefix.split('/')[1] + + mutPrefix.split('/')[2] + + mutPrefix.split('/')[3]; + this.currJob.payload.mutPrefix = mutPrefix + '/customprefix'; + this._logger.save(this.currJob._id, 'CurrJob6 mutprefix' + this.currJob.payload.mutPrefix); } } @@ -272,6 +272,8 @@ export abstract class JobHandler { this._logger.info(this.currJob._id, `Created payload manifestPrefix: ${this.currJob.payload.manifestPrefix}`); } + this._logger.info(this.currJob._id, `Checking Mut Prefix after ConstructPrefix: ${this.currJob.payload.mutPrefix}`); + this.prepStageSpecificNextGenCommands(); this.constructEnvVars(); if (this._currJob.payload.jobType === 'productionDeploy') {