Skip to content

Commit

Permalink
Merge pull request #29 from bluesliverx/master
Browse files Browse the repository at this point in the history
Update readme with badges, etc
  • Loading branch information
bluesliverx committed Nov 9, 2020
2 parents fb01a21 + 72ca111 commit b6a7bda
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# GitHub Pull Request Comment Build Plugin

[![Jenkins Plugin](https://img.shields.io/jenkins/plugin/v/github-pr-comment-build.svg)](https://plugins.jenkins.io/github-pr-comment-build)
[![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/github-pr-comment-build.svg?color=blue)](https://plugins.jenkins.io/github-pr-comment-build)

## About this plugin

This plugin listens for comments on pull requests and will trigger a GitHub multibranch
job if a comment body matches the configured value, such as "rerun the build".
This is implemented as a branch property on multibranch jobs.
Expand All @@ -16,7 +21,7 @@ match against the comment body.
Please ensure that you have a GitHub server properly connected via the Jenkins configuration,
or else the plugin will not operate correctly.

## Regular expression matching
### Regular expression matching

The regex is not surrounded with any markers and uses the
`Pattern.CASE_INSENSITIVE` and `Pattern.DOTALL` Java flags.
Expand All @@ -38,7 +43,7 @@ Commence the rebuilding

If no pattern is provided, `^REBUILD$` is used.

## GitHub organization folders
### GitHub organization folders

When using the GitHub organization folders approach to creating multibranch
pipeline jobs, the branch properties may not be edited [according to
Expand All @@ -50,9 +55,30 @@ advantage of this plugin is that it may be used from the Job DSL plugin to
create jobs with this branch property already added (in the case when you don't
trust pipeline scripts, etc).

## Changelog

### 2.2 (November 6, 2020)

Add GitHub comment body in the cause object when a build is triggered
(thanks to @jebentier for PR #25).

### 2.0 (June 15, 2017)

Support newer SCM/branch source plugins. Use this release if you are
using the 2.x releases of the SCM API-related plugins.

### 1.1 (March 6, 2017)

Add support for building a job when a PR title or body is updated as
well by using a separate branch property.

### 1.0 (January 23, 2017)

Initial release


# Plugin maintenance
## Plugin maintenance

## Releasing new versions
### Releasing new versions

Use the instructions found [in the Jenkins docs](https://www.jenkins.io/doc/developer/publishing/requesting-hosting/).
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<version>2.3-SNAPSHOT</version>
<packaging>hpi</packaging>
<name>GitHub PR Comment Build Plugin</name>
<url>https://wiki.jenkins-ci.org/display/JENKINS/GitHub+PR+Comment+Build+Plugin</url>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<description>Allows rebuilds of multibranch PR jobs based on GitHub PR comments.</description>
<licenses>
<license>
Expand Down

0 comments on commit b6a7bda

Please sign in to comment.