jenkins-gitlab-hook-plugin icon indicating copy to clipboard operation
jenkins-gitlab-hook-plugin copied to clipboard

Support for multiple projects

Open maniesira opened this issue 8 years ago • 2 comments

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

maniesira avatar May 13 '16 13:05 maniesira

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.

myzhan avatar Jul 27 '16 08:07 myzhan

Hi @elvanja / @javiplx ,

I prefer to contribute to this plugin, instead of starting a new plugin.

Trying to learn Ruby, and start contributing.

myzhan avatar Jul 27 '16 08:07 myzhan