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 620 forks source link

Add filter filter on trigger #1134

Open SunBlack opened 3 years ago

SunBlack commented 3 years ago

Currently on each new commit to a MR a pipeline will be triggered, even the build is not always required.

Example:

Possibile solutions to retrieve changed files:

How to skip job

Option 1 is more flexible, as you can e.g. skip some stages, but not all (e.g. run doxygen, but don't run tests). Option 2 has the benefit that a job can bypass the job queue, but requires to think also about what happens with the defined build within gitlabBuilds.

Michaelxu2022 commented 1 month ago

"I hope to add a trigger based on the modification event of a specific file in the repo." example repo when the workspace file in the repo is updated."