On Wed, Oct 22, 2014 at 3:18 PM, Sandro Roth <[email protected]> wrote:
> > It works great when I create a Jenkins job which tracks changes in a git > repo, runs the tests and if succeeded pushes the puppet module to the > master. > But we have about 30 modules and creating a job for each module seems > inefficient? > > Maybe there is a way doing this dynamically that someone could point me to? > Or perhaps jenkins is not the right solution here for us? > > More than 'recommended', you will a jenkins job for each repo. Maybe you could circumvent it in some manner, but as far as I know, wildcards are not allowed on repository names, so you will need at least to explicitly list each of your individual repos. Altough creating many jenkins jobs is not that hard. If by chance you are using gitlab, I'm working on the gitlab-hook plugin to allow template based automatic job creation. But in any case, you can use the command line jenkins client (point your browser to /cli on your jenkins server). In particular, you can get the configuration of an existing job in xml format, and create/modify a job by uploading an xml file. So you have a poor man templating engine. Basically, you only need to modify the cloning url on the xml, as the job name is not written there. Javier Palacios -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOAgqVz6TuHmrxCbnL2QR00Gm_jZxf8X0A2Gsm%3DhXAF5ZpQBvQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
