constantcontact / jenkins_pipeline_builder

YAML/JSON driven jenkins job generator that lets you version your artifact pipelines alongside with the artifact source itself.
MIT License
62 stars 43 forks source link

Let pipeline jobs comment on pull requests #110

Closed rkuzsma closed 7 years ago

rkuzsma commented 7 years ago

In newer versions of Jenkins, the github pull request notifier accepts a new checkbox parameter, "Comment on Pull Request", which is Unchecked by default. Older versions of Jenkins always commented on pull requests by default.

Users who want their pipeline jobs to add comments to PR's will need this extension change.

Users will also need to add markup like this in their pipeline YAML files:

      - pull_request_notifier:
          pull_request_number: '{{pull_request_number}}'
          group_repo: '{{git_org}}/{{git_repo}}'
          comment_on_pr: true

If unspecified, comment_on_pr is false by default.

rkuzsma commented 7 years ago

@JustMcAfee Tests updated, default is false.