42¢ glxn.net

civu, a CLI for cloning git repositories from jenkins views

The other day I was starting work on a project that had a large code base spread across many git repositories.
There was no defined list of which repositories I needed to clone, as it depended on what people were working on.
The team had just cloned the repositories as they saw the need.
I prefer to clone the whole codebase, so I have everything locally.
The project used jenkins, and on jenkins there was a structure based on views.
Each view was a set of builds relating to a product suite, or codebase.
This meant that all the repositories I needed where listed in a view on jenkins.

Ruby Hacking the civu CLI

The weekend came and I decided to do a bit of ruby hacking.
I wanted a simple CLI that would let me point at a jenkins and tell it which view I wanted to clone repositories for.

After a couple of days of hacking civu was born. CIVU is available through rubygems.
Just install with gem and run it.

$ gem install civu
$ civu --help 
$ civu list viewname
$ civu clone viewname
comment on this post

Moar stuffs

07 Jan 2014 » civu, a CLI for cloning git repositories from jenkins views
06 Jan 2014 » PyramidSort, a Sublime Text plugin for for reformatting text
05 Jan 2014 » Git commit-message hook for JIRA issue tags
31 May 2013 » hacking kitchen tiles with coffeescript
30 May 2013 » Nuke, ps grep kill something
24 May 2013 » mvnr: recursive mvn command runner
23 May 2013 » Query By Example for JPA
22 May 2013 » gitr: recursive git command runner
21 May 2013 » Keeping gh-pages branch in sync with master
19 May 2013 » Migrated from wordpress to jekyll and github pages
14 Aug 2012 » Using Sublime Text 2 as git commit message editor
10 Mar 2012 » QRGen, a small wrapper on top of ZXING for generating QRCodes in java
04 Jan 2012 » My Bash PS1 with git branch info
17 Aug 2010 » Making a swing project using IntelliJ IDEA GUI builder with maven, Including executable jar
01 May 2010 » Using Arquillian to test against a remote jboss container from within IDEA
06 Apr 2010 » WELD/CDI lightningtalk from Know IT 2010 annual conference
03 Apr 2010 » Solving Sudoku using java swing and junit
01 Mar 2010 » Simple CDI/WELD login example
01 Mar 2010 » Implementing @RequestParam in CDI/WELD using Qualifier and InjectionPoint as @HttpParam
01 Nov 2009 » Seam Maven Refimpl