From 17aa5399fc2be00d87a97b537920ab87e99fc0f3 Mon Sep 17 00:00:00 2001 From: IGFCoimbra <36641997+IGFCoimbra@users.noreply.github.com> Date: Wed, 2 Jan 2019 16:59:31 +0000 Subject: [PATCH] Add environment variable for bitbucket pipeline Add BITBUCKET_COMMIT --- lib/getGitData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/getGitData.js b/lib/getGitData.js index caf5133..879f837 100644 --- a/lib/getGitData.js +++ b/lib/getGitData.js @@ -16,7 +16,8 @@ process.env.CI_COMMIT_ID || process.env.WERCKER_GIT_COMMIT || process.env.BUILDKITE_COMMIT || - process.env.CI_COMMIT_SHA; + process.env.CI_COMMIT_SHA || + process.env.BITBUCKET_COMMIT; if (gitCommit) { logger.debug('Received Commit Id: ' + gitCommit);