Skip to content

Commit

Permalink
feat: add previousCiBuildId to run creation
Browse files Browse the repository at this point in the history
  • Loading branch information
vCaisim committed Oct 11, 2024
1 parent 0e57465 commit d39614c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cypress-cloud/lib/api/types/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type CreateRunPayload = {
batchSize?: number;
autoCancelAfterFailures: ValidatedCurrentsParameters["autoCancelAfterFailures"];
coverageEnabled?: boolean;
previousCiBuildId?: string;
};

export type CloudWarning = {
Expand Down
1 change: 1 addition & 0 deletions packages/cypress-cloud/lib/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d39614c

Please sign in to comment.