Skip to content

Commit

Permalink
[DOP-4334]: Add if else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Feb 12, 2024
1 parent 240a0c8 commit 4d6cf2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/job/productionJobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,16 @@ export class ProductionJobHandler extends JobHandler {
}

async deploy(): Promise<CommandExecutorResponse> {
let resp;
if (process.env.FEATURE_FLAG_MONOREPO_PATH === 'true' && this.currJob.payload.repoName === MONOREPO_NAME) {
const { mutPrefix, branchName } = this.currJob.payload;
const { bucket, url } = await this.getEnvironmentVariables();
const hasConfigRedirects = await checkRedirects();

await nextGenDeploy({ mutPrefix, bucket, url, branchName, hasConfigRedirects });
resp = await nextGenDeploy({ mutPrefix, bucket, url, branchName, hasConfigRedirects });
} else {
resp = await this.deployWithMakefiles();
}
const resp = await this.deployWithMakefiles();
try {
if (resp?.output) {
const makefileOutput = resp.output.replace(/\r/g, '').split(/\n/);
Expand Down

0 comments on commit 4d6cf2b

Please sign in to comment.