-
Bug
-
Resolution: Unresolved
-
Medium
-
4
-
1,532
-
pipelines: pull-requests: '**':
returns
instead full form like within branch driven pipeline
pipelines:
default:
Expected:
Always return full form.
Workaround
Add the following command in your script, prior to using the BITBUCKET_COMMIT variable.
- export BITBUCKET_COMMIT=$(git log -1 --format="%H" $BITBUCKET_COMMIT 2>/dev/null) - echo $BITBUCKET_COMMIT
BITBUCKET_COMMIT will then return the full hash.