Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit a7642af

Browse files
DOP-3999 Exclude oldgen jobs from "don't send notifications of non-GC builds" logic (#904)
* DOP-3999 notify oldgen jobs * DOP-3999 autobuilder php-library * DOP-3999 rollback last change * DOP-3999 undid package-lock changes * DOP-3999 undid package-lock.json changes * DOP-3999 use isNextGen field * DOP-3999 fixed if statement
1 parent a746745 commit a7642af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/job/jobHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export abstract class JobHandler {
105105
// completed after the Gatsby Cloud build via the SnootyBuildComplete lambda.
106106
const { _id: jobId, user } = this.currJob;
107107
const gatsbyCloudSiteId = await this._repoEntitlementsRepo.getGatsbySiteIdByGithubUsername(user);
108-
if (gatsbyCloudSiteId && this.currJob.payload.jobType === 'githubPush') {
108+
if (this.currJob.payload.isNextGen && gatsbyCloudSiteId && this.currJob.payload.jobType === 'githubPush') {
109109
this.logger.info(
110110
jobId,
111111
`User ${user} has a Gatsby Cloud site. The Autobuilder will not mark the build as completed right now.`

0 commit comments

Comments
 (0)