diff options
author | franck cuny <franck@lumberjaph.net> | 2011-02-13 16:20:59 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-02-13 16:20:59 +0100 |
commit | e81938b20ae19d472a6f835f8af01a428b8724de (patch) | |
tree | d6cea5e811f60fcd8f3c94ee1d9b4cf247404531 /lib/jitterbug/Builder.pm | |
parent | Make jitterbug::Test use the current perl interp (diff) | |
parent | Merge branch 'feature/stack_builds' into devel (diff) | |
download | jitterbug-e81938b20ae19d472a6f835f8af01a428b8724de.tar.gz |
Merge branch 'devel'
* devel: add more tests inside the hook, we check if we can add more than one task for this project add configuration option to skip some branches; add tests for the Hook that's why we want datetime use DateTime update templates to show informations about running tasks column started_when: datetime when the build started prepare to update schema again display current build if any add sql schema for various version don't ignore .sql files script to migrate/upgrade dbix schema add version to our schema update templates and css we want a find, not a search here add pending status to the schema (TODO: need a script to migrate the schema) load tasks and display them on the dashboard
Diffstat (limited to 'lib/jitterbug/Builder.pm')
-rw-r--r-- | lib/jitterbug/Builder.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/jitterbug/Builder.pm b/lib/jitterbug/Builder.pm index a5f0cbb..deb4c5b 100644 --- a/lib/jitterbug/Builder.pm +++ b/lib/jitterbug/Builder.pm @@ -3,6 +3,7 @@ package jitterbug::Builder; use strict; use warnings; +use DateTime; use YAML qw/LoadFile Dump/; use JSON; use File::Path qw/rmtree/; @@ -85,7 +86,9 @@ sub run_task { my $desc = JSON::decode_json( $task->commit->content ); my $conf = $self->{'conf'}; - $desc->{'build'}{'start_time'} = time(); + my $dt = DateTime->now(); + $task->update({started_when => $dt}); + $desc->{'build'}{'start_time'} = $dt->epoch; debug("Build Start"); my $report_path = dir( |