Skip to content

About

gitlab webhook plugin for nci https://github.com/node-ci/nci

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

nci-gitlab-webhook

Build Status

gitlab webhook plugin for nci

Dependencies

nci-express

Installation

npm install nci-gitlab-webhook

Usage

Add this plugin to the plugins section at server config

plugins:
    - nci-gitlab-webhook

after that you can set gitlab webhook at project config

webhooks:
    gitlab:
        secret: '123456'

plugin will listen POST /webhooks/:projectName/gitlab and will get secret from X-Gitlab-Token request header.

By default plugin processes only GitLab Push Hook events to run build on new commits in default branch (specified in scm.rev section of project config).

Plugin will run build on GitLab Merge Request opening or new commits in source branch if Merge Request Hook specified in GitLab.

Also plugin supports force build running via adding MR comment with text /run_ci.

Plugin requires following events in GitLab webhook:

  • Push Hook
  • Merge Request Hook
  • Note Hook

Skip builds

You can avoid of build creation by adding [skip ci] or [ci skip] to commit message.

License

The MIT License

About

gitlab webhook plugin for nci https://github.com/node-ci/nci

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages