Skip to content

Commit

Permalink
DOP-4414 push to preprd
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 14, 2024
1 parent 16a4057 commit ac84af3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const SMOKETEST_SITES = [
'docs-realm',
'docs',
// 'docs-atlas-cli',
// 'docs-ecosystem',
// 'docs-node',
// 'docs-app-services',
'docs-ecosystem',
'docs-node',
'docs-app-services',
];

async function prepGithubPushPayload(
Expand Down Expand Up @@ -198,13 +198,11 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
let names = '';

for (const s in SMOKETEST_SITES) {
const repoBranches = await repoBranchesRepository.getRepoBranches(SMOKETEST_SITES[s]);
const repoName = SMOKETEST_SITES[s];
const jobTitle = 'Smoke Test' + repoName;
let repoInfo, projectEntry, repoOwner;
try {
repoInfo = await docsetsRepository.getRepo(repoName);
return repoBranches.project + repoInfo.project;
projectEntry = await projectsRepository.getProjectEntry(repoInfo.project);
repoOwner = projectEntry.github.organization;
} catch {
Expand All @@ -218,8 +216,8 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
);
}

//add commit hash here
const jobPrefix = repoInfo?.prefix ? repoInfo['prefix'][env] : '';
//add commit hash to jobPrefix here?
// const ammendedJobPrefix = body.after ? jobPrefix + body.after : jobPrefix;
// const prefix = ammendedJobPrefix;

Expand Down

0 comments on commit ac84af3

Please sign in to comment.