jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 614 forks source link

[Feature request] Allowed commits configuration #1047

Open foobarfran opened 4 years ago

foobarfran commented 4 years ago

Feature Request

Feature description

It would be useful to have an Allowed commits configuration similar to the existent Allowed branches

One frequent scenario is running jobs on Gitlab push events, doing some changes during the Jenkins job and then commit and push the changes. This causes a job to run again, because of the new push event. If we could have a configuration to filter commit messages we could use specific commit names or regex to not execute another job.

ghost commented 4 years ago

This feature will be so useful. We did a workaround because the original plugin haven't this feature.