github / janky

Continuous integration server built on top of Jenkins and Hubot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for multiple jobs per repo

trobrock opened this issue · comments

Is there any support for creating multiple jobs per repo and branch? We have Jenkins setup to build our app in one job and then run other tests as separate jobs in a pipeline style configuration, so when a user calls setup for a repo we need to actually create multiple jobs on jenkins

You can track the same repository under different names. For example we setup one libgit2 build for each supported platform:

hubot ci setup libgit2/libgit2 libgit2-linux
hubot ci setup libgit2/libgit2 libgit2-mac
hubot ci setup libgit2/libgit2 libgit2-windows

I actually need each one of those commands to create a couple jobs on
Jenkins that have the correct dependencies setup. One job for us is
actually a chain of multiple jobs.

Thanks,
Trae Robrock
http://about.me/trobrock

On Jan 18, 2012, at 5:46 PM, Simon Rozet
reply@reply.github.com
wrote:

You can track the same repository under different names. For example we setup one libgit2 build for each supported platform:

hubot ci setup libgit2/libgit2 libgit2-linux
hubot ci setup libgit2/libgit2 libgit2-mac
hubot ci setup libgit2/libgit2 libgit2-windows

Reply to this email directly or view it on GitHub:
#32 (comment)

Gotcha. This isn't possible in Janky and probably won't be in the future either. I'd suggest creating a job via Janky and then specify job dependencies and whatnot using the Jenkins interface.

Would this sort of config option be worth pull requesting?

Thanks,
Trae Robrock
http://about.me/trobrock

On Jan 18, 2012, at 5:55 PM, Simon Rozet
reply@reply.github.com
wrote:

Gotcha. This isn't possible in Janky and probably won't be in the future either. I'd suggest creating a job via Janky and then specify job dependencies and whatnot using the Jenkins interface.


Reply to this email directly or view it on GitHub:
#32 (comment)

@sr how do you set the name of a job? I dont really like the SHAs that it uses by default.

@jsmestad Not sure what SHAs you're talking about

@jsmestad Oh gotcha. Yeah. I hate it too. It's a MD5 of all the things that define a job. Changing any of these results in a new hash, and thus hubot ci setup creates a new job ont he Jenkins server.

https://github.com/github/janky/blob/master/lib/janky/repository.rb#L162-172