Skip to content
Discussion options

You must be logged in to vote

So the below Bitbucket pipeline configuration results in missing BITBUCKET_PR_ID env var, which is available only in pull-requests pipelines:

[…]
pipelines:
  default:
    - parallel:
        - step:
[…]

The config should be adjusted to the below to allow MegaLinter to comment on Bitbucket PRs:

[…]
pipelines:
  pull-requests:
    "**": # Run on PRs for any branch (the source branch of the pull request)
      - parallel:
          - step:
[…]

For clarity these are the Bitbucket env vars required for Megalinter's Bitbucket Comment Reporter (ref)

BITBUCKET_BUILD_NUMBER
BITBUCKET_GIT_HTTP_ORIGIN
BITBUCKET_PR_ID
BITBUCKET_REPO_ACCESS_TOKEN
BITBUCKET_REPO_FULL_NAME
BITBUCKET_STEP_UUID

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yermulnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant