Jenkins - one Git repository has several logical projects.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jenkins - one Git repository has several logical projects.

mserjo
Please, help.

I'm doing migration CI/CD from TeamCity + SVN to Jenkins + Git (GitLab). But, the one Git repository includes five logical projects (in the diferent folders and sub-folders). To make a five of Git repository is bad way for me.

In the Jenkins I have made a five Jobs (one for the each logical project, I have tried variants with Pipeline and FreeStyle). The param "polling ignores commits in certain paths" is turned on (and selected folders of the logical project) for the each Job.

When I use the webhook (the GitLab is configured of the webhooks for the each Job and the param "Build when a change is pushed to GitLab. GitLab webhook" is enabled in the Jenkins) then all Jobs are start to build when "git push" is executed on any repository file. But, if Job has disabled the param "Build when a change is pushed to GitLab. GitLab webhook", then Job doesn't respond to "git push" of any file in the repository (including its own, which is selected in "polling ignores commits in certain paths").

Tell me, please, how to overcome this situation, and make every Job works only when made "git push" in the folders that are assigned to in the "polling ignores commits in certain paths"?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/be429819-969e-4f53-98ab-7a3828c43f15%40googlegroups.com.