Skip to content

Commit

Permalink
DOP-4414 testing job prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 16, 2024
1 parent 2b2c108 commit 0811ee2
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,10 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr

const jobPrefix = repoInfo?.prefix ? repoInfo['prefix'][env] : '';
//add commit hash to jobPrefix here?
const newHead = body.workflow_run.head_sha;

const payload = await createPayload(
repoName,
true,
jobPrefix,
repoBranchesRepository,
repoInfo,
newHead,
repoOwner
);
//const newHead = body.workflow_run.head_sha;

const payload = await createPayload(repoName, true, jobPrefix, repoBranchesRepository, repoInfo, '', repoOwner);
names = names + repoName;
//add logic for getting master branch, latest stable branch
const job = await prepGithubPushPayload(body, payload, jobTitle);

Expand All @@ -235,7 +227,6 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
const jobId = await jobRepository.insertJob(job, c.get('jobsQueueUrl'));
jobRepository.notify(jobId, c.get('jobUpdatesQueueUrl'), JobStatus.inQueue, 0);
consoleLogger.info(job.title, `Created Job ${jobId}`);
names = names + repoName;
} catch (err) {
return false;
consoleLogger.error('TriggerBuildError', err + repoName);
Expand Down

0 comments on commit 0811ee2

Please sign in to comment.