Gitlab Hook Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID gitlab-hook Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
1.4.0 (archives)
May 08, 2015
ruby-runtime (version:0.12)
git (version:2.0)
Source Code
Issue Tracking
Pull Requests
Open Issues
Pull Requests
n/a (id: jpalacios)
Usage Installations 2014-Nov 2364
2014-Dec 2450
2015-Jan 2673
2015-Feb 2729
2015-Mar 3013
2015-Apr 3120
2015-May 3211
2015-Jun 3618
2015-Jul 3768
2015-Aug 3905
2015-Sep 4131
2015-Oct 3553

Enables Gitlab web hooks to be used to trigger SMC polling on Gitlab projects


For Gitlab there is an existing solution that might work for you.
You can just use the notifyCommit hook on Git plugin like this:

http://your-jenkins-server/git/notifyCommit?url=<URL of the Git repository for the Gitlab project>

But, with a large number of projects that are mostly polling (no hooks), the project might actually be built with a great delay (5 to 20 minutes).
You can find more details about notifyCommit and this issue here.

That is where this plugin comes in.
It gives you the option to use build_now or notify_commit hook, whichever suits your needs better.

Version history

Version 1.4.1 (snapshot)

  • JENKINS-28327, uncaptured exception on malformed congiguration file
  • JENKINS-28452, configurable triggering for projects with pre-build merges

Version 1.4.0 (May 2015)

Version 1.3.1 (Feb 27 2015)

  • JENKINS-27101, exception happens when creating a project from a template
  • Issue #56, elevated privileges required for automatic project creation

Version 1.3.0 (Feb 19 2015)

  • Template based automatic project creation
  • Improved branch matching. Mainly allow exact matches for */master and allow branch specifications starting with refs/

Version 1.2.1 (Feb 3 2015)

  • Issue #3 allowing also choice parameter type for branch name parameter

Version 1.2.0 (Jan 19 2015)

  • Issue #44 global configuration for automatic project per branch creation
  • Issue #50 trigger the build only for multi configuration project, not it's axis
  • Issue #31 payload data is auto-filled to job parameters
  • Issue #41 supporting refspec matching (if refspec present in job configuration)
  • Issue #39 multiple smc's support
  • Issue #42 git 2 support
  • Issue #43 better error handling, exceptions converted to java RuntimeException
  • #JENKINS-24232 fix for branch specifier that is not of String type, now just skipping such projects instead of raising exception
  • Issue #45 fix for getting branch name from payload, did not work correctly for tags
  • fix for invalid or empty payload, returns the actual payload sent and a more meaningful description
  • catching invalid route, displaying known routes and link to wiki
  • improved logging for request details, payload, matching projects
  • displaying stack trace on exception, nicely formatted for api response or in log

Version 1.1.0 (Jul 13 2014)

  • Issue #30 supporting crumb exclusion
  • Issue #26 automatic detection and filling of parameters from payload
  • RSpec 3.0 compliance


plugin-scm-related plugin-scm-related Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment