jenkins-gitlab-hook-plugin
jenkins-gitlab-hook-plugin copied to clipboard
Support for multiple projects
Hi @elvanja / @javiplx ,
I'm finding your plugin very useful but I was wondering if it is possible to have multiple projects trigger one generic Jenkins job.
For example, we have lots of Puppet modules (one module per repo) that undergo same set of unit tests. Therefore, it would be ideal to trigger a generic Jenkins job say Test_Puppet_Module
and have the project.namespace
and project.name
as parameters which gets passed into the Git configuration as follows;
[email protected]:${project.namespace}/${project.name}.git
I know this is currently possible for multiple branches so was wondering if it can be applicable for projects. Maybe there is a better way to achieve this but thought I'll post this question.
Thank you in advance. Regards, Dinesh
Hi @maniesira ,
I met the same problem, and I wrote a new plugin
In your case, you can use GITLAB_REPOSITORY_NAME and GITLAB_REPOSITORY_SSH_URL, provided by this plugin.
Hi @elvanja / @javiplx ,
I prefer to contribute to this plugin, instead of starting a new plugin.
Trying to learn Ruby, and start contributing.