Skip to content

Commit

Permalink
Merge pull request #214 from currents-dev/feat/prev-ciBuildId
Browse files Browse the repository at this point in the history
[CSR-1639] feat: Add previousCiBuildId to run creation
  • Loading branch information
twk3 authored Oct 15, 2024
2 parents 0e57465 + d39614c commit c5114e0
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 c5114e0

Please sign in to comment.