From dfbb32e8dd79190116d7e30dbf9b9db4a298fa8e Mon Sep 17 00:00:00 2001 From: Veaceslav <118342408+vCaisim@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:52:36 +0300 Subject: [PATCH] feat: add previousCiBuildId to run creation --- packages/cmd/src/api/create-run.ts | 1 + packages/cmd/src/services/upload/index.ts | 1 + turbo.json | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/cmd/src/api/create-run.ts b/packages/cmd/src/api/create-run.ts index 302c941..6dc1c73 100644 --- a/packages/cmd/src/api/create-run.ts +++ b/packages/cmd/src/api/create-run.ts @@ -46,6 +46,7 @@ export type CI = { export type CreateRunParams = { ciBuildId?: string; + previousCiBuildId?: string; group: string; projectId: string; platform: Platform; diff --git a/packages/cmd/src/services/upload/index.ts b/packages/cmd/src/services/upload/index.ts index 8d41bd5..b03ddfb 100644 --- a/packages/cmd/src/services/upload/index.ts +++ b/packages/cmd/src/services/upload/index.ts @@ -203,6 +203,7 @@ async function createRun({ machineId: currents.machineId ?? machineId, framework, instances, + previousCiBuildId: process.env.CURRENTS_PREVIOUS_CI_BUILD_ID, }; debug( diff --git a/turbo.json b/turbo.json index d39ff6c..9f5eecb 100644 --- a/turbo.json +++ b/turbo.json @@ -14,6 +14,7 @@ "CURRENTS_API_URL", "CURRENTS_REST_API_URL", "CURRENTS_REMOTE_LOGGING", + "CURRENTS_PREVIOUS_CI_BUILD_ID", "TF_BUILD", "TF_BUILD_BUILDNUMBER", "AZURE_HTTP_USER_AGENT",