diff --git a/src/ci_providers/provider_buildkite.ts b/src/ci_providers/provider_buildkite.ts index b22f3f1ae..a2d79f2ab 100644 --- a/src/ci_providers/provider_buildkite.ts +++ b/src/ci_providers/provider_buildkite.ts @@ -101,8 +101,8 @@ function _getSHA(inputs: UploaderInputs): string { */ function _getSlug(inputs: UploaderInputs): string { const { args, environment: envs } = inputs - if (args.slug || envs.BUILDKITE_PROJECT_SLUG) { - return args.slug || envs.BUILDKITE_PROJECT_SLUG || '' + if (args.slug || envs.BUILDKITE_PIPELINE_SLUG) { + return args.slug || envs.BUILDKITE_PIPELINE_SLUG || '' } throw new Error('Unable to detect slug, please set manually with the -r flag') } diff --git a/test/providers/provider_buildkite.test.ts b/test/providers/provider_buildkite.test.ts index 752a21fbb..1d8a01bd8 100644 --- a/test/providers/provider_buildkite.test.ts +++ b/test/providers/provider_buildkite.test.ts @@ -43,7 +43,7 @@ describe('Buildkite Params', () => { BUILDKITE: 'true', BUILDKITE_BUILD_NUMBER: '1', BUILDKITE_JOB_ID: '3', - BUILDKITE_PROJECT_SLUG: 'testRepo', + BUILDKITE_PIPELINE_SLUG: 'testRepo', BUILDKITE_BRANCH: 'main', BUILDKITE_COMMIT: 'testingsha', BUILDKITE_BUILD_URL: 'https://buildkite.com/testOrg/testRepo',