diff --git a/packages/cypress-cloud/lib/api/types/run.ts b/packages/cypress-cloud/lib/api/types/run.ts index f6b3351..8a8a6ff 100644 --- a/packages/cypress-cloud/lib/api/types/run.ts +++ b/packages/cypress-cloud/lib/api/types/run.ts @@ -24,6 +24,7 @@ export type CreateRunPayload = { batchSize?: number; autoCancelAfterFailures: ValidatedCurrentsParameters["autoCancelAfterFailures"]; coverageEnabled?: boolean; + previousCiBuildId?: string; }; export type CloudWarning = { diff --git a/packages/cypress-cloud/lib/run.ts b/packages/cypress-cloud/lib/run.ts index 1610f16..ed118aa 100644 --- a/packages/cypress-cloud/lib/run.ts +++ b/packages/cypress-cloud/lib/run.ts @@ -109,6 +109,7 @@ export async function run(params: CurrentsRunParameters = {}) { batchSize, autoCancelAfterFailures, coverageEnabled: experimentalCoverageRecording, + previousCiBuildId: process.env.CURRENTS_PREVIOUS_CI_BUILD_ID, }); setRunId(run.runId); diff --git a/turbo.json b/turbo.json index 104c23a..a560ccb 100644 --- a/turbo.json +++ b/turbo.json @@ -16,6 +16,7 @@ "CURRENTS_PROJECT_ID", "CURRENTS_API_URL", "CURRENTS_RECORD_KEY", + "CURRENTS_PREVIOUS_CI_BUILD_ID", "TF_BUILD", "TF_BUILD_BUILDNUMBER", "AZURE_HTTP_USER_AGENT",