Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

trigger specific job but only on commits to a specific branch #30

Open
kylebevans opened this issue Apr 29, 2016 · 0 comments
Open

trigger specific job but only on commits to a specific branch #30

kylebevans opened this issue Apr 29, 2016 · 0 comments

Comments

@kylebevans
Copy link

I have a project that is made up of a bunch of gitlab repos, but one of the repos is a build repo that has a build script that clones all the necessary repos instead of having jenkins do it.

So the jenkins job only has the build repo specified in the SCM settings. I want to trigger the job if there is a commit to the other repos though, and it seems like this plugin supports that using:

http://your-jenkins-server/gitlab/build_now/project_name

However, I only want the job to trigger if there is a commit to a specific branch. Is this possible?

For example: http://your-jenkins-server/gitlab/build_now/project_name?branch=development

Then the gitlab hook plugin will only trigger the job if the branch from the gitlab payload data matches the branch parameter in the URL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant