Tyler SchultzTyler Schultz
Standup 2010-12-09: Aggregating hudson builds, Time gotcha
edit Posted by Tyler Schultz on Thursday December 09, 2010 at 09:17AM

Help:

  • Does anyone know of a way to aggregate multiple projects into one hudson build? A pivot currently has 4 hudson projects that he'd like to show as one status. If any one project fails to build, then the build should go red, but hudson should still build the other three.

Interesting:

  • Time gotcha:

In 1.8.7 you'll see this:

 > Time.now
 => Wed Dec 08 22:26:37 -0800 2010

 > 1.day.ago
 => Wed, 08 Dec 2010 06:26:44 UTC +00:00

 > 1.day.ago.to_date
 => Wed, 08 Dec 2010

 > (Time.now - 1.day).to_date
 => Tue, 07 Dec 2010

In 1.9.2 you'll see this:

 ruby-1.9.2-p0 > Time.now
 => 2010-12-08 23:28:26 -0800 

 ruby-1.9.2-p0 > 1.day.ago
 => Tue, 07 Dec 2010 23:28:26 PST -08:00 

 ruby-1.9.2-p0 > 1.day.ago.to_date
 => Tue, 07 Dec 2010 

 ruby-1.9.2-p0 > (Time.now-1.day).to_date
 => Tue, 07 Dec 2010