From 6c07f23bdcee01765c90e44a96fe0fdc633086b7 Mon Sep 17 00:00:00 2001 From: Mitchell Borrego Date: Tue, 26 Oct 2021 23:51:39 -0400 Subject: [PATCH 1/2] chore: use `BUILDKITE_PIPELINE_SLUG` --- src/ci_providers/provider_buildkite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ci_providers/provider_buildkite.ts b/src/ci_providers/provider_buildkite.ts index 67f57fda4..db32b7145 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') } From 9c8e9f7f6df11f9e5355892f6723ad196f97b31e Mon Sep 17 00:00:00 2001 From: Mitchell Borrego Date: Tue, 26 Oct 2021 23:53:25 -0400 Subject: [PATCH 2/2] chore: update provider_buildkite.test.ts --- test/providers/provider_buildkite.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',