Skip to content

okutasan/commit-message-trigger-plugin

 
 

Repository files navigation

Jenkins Commit Message Trigger Plugin

This plugin allows builds to be made only for certain text ([ci KEYWORD]) in the commit message.

Full example: (Assuming you set commit text to 'merge'.)

$ git commit -m 'finish feature [ci merge]'

This allows you when using a gitflow/hubflow to have Jenkins monitor feature branches but only build/merge develop when a feature has been completed by having the developer add [ci build] in the final commit.
This skips the step of creating a pull request in the general gitflow methodology. You could also use [ci deploy] to cause a job which deploys to a staging server to run.

Installation

Install the plugin from the Jenkins Plugin Manager.

Enabling ci-skip

In the job configuration, check Enable Commit Message Trigger and set the keyword to the one you want to use for this build.

A Screenshot

How it works

If an incoming changeset commit message does not include [ci KEYWORD], the build is skipped as NOT_BUILT. If there is no changeset, it will be built.

Development

$ bundle install
$ ./bin/start-jenkins
$ open http://localhost:8080

Run Test

$ bundle exec rake

Build

$ jpi build

Changelog

Version 0.1 (September 30, 2014)

  • initial release

About

Cause a build through a version system (GIT/SVN/etc) commit message

Resources

License

Stars

Watchers

Forks

Packages

No packages published