Skip to content

Bitbucket Comment Reporter does not post comment to PRΒ #6419

@cfsb-jrose

Description

@cfsb-jrose

Describe the bug
From Jenkins pipeline, I am attempting to use Bitbucket Comment Reporter, to post information to improve the DEV experience. Although the pipeline succeeds, no comment is posted to the pull request.

To Reproduce
Steps to reproduce the behavior:

  1. Set BITBUCKET_REPO_ACCESS_TOKEN environment variable to fetch token from Jenkins credentials:
environment {
  BITBUCKET_REPO_ACCESS_TOKEN = credentials('credential-id')
}
  1. Add the following to .mega-linter.yml
BITBUCKET_COMMENT_REPORTER: true
BITBUCKET_COMMENT_REPORTER_OVERWRITE_COMMENT: true
  1. Submit PR and let Jenkins build run

Expected behavior
Megalinter should add a comment to PR with table shown in pipeline logs

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions