Skip to content

Commit

Permalink
DOP-4401 testing logger
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Feb 29, 2024
1 parent 91b8ba4 commit 1081935
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit 1081935

Please sign in to comment.