From 7005f49aba55822e8aa59c3711af374257cea381 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 13 May 2013 16:37:32 +0200 Subject: [PATCH] Support updates from Jenkins. --- matrixgen.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/matrixgen.pl b/matrixgen.pl index f19e609..b478b35 100755 --- a/matrixgen.pl +++ b/matrixgen.pl @@ -82,6 +82,7 @@ foreach my $i (0..$#list) { elsif (/^double.*upgrade/i) { $scen = 'double-upgrade'; } elsif (/^upgrade/i or /major upgrade/i) { $scen = 'major-upgrade'; } elsif (/^minor upgrade/i) { $scen = 'minor-upgrade'; } + elsif (/^update/i) { $scen = 'update'; } elsif (/build/i) { $scen = 'build'; } } @@ -175,7 +176,7 @@ foreach my $s (keys %list) { foreach my $c (sort keys %components) { my $cmd; - for my $s ('install', 'minor-upgrade', 'major-upgrade', 'double-upgrade') { + for my $s ('install', 'minor-upgrade', 'major-upgrade', 'double-upgrade', 'update') { if (exists $list{$s}) { for my $p (sort keys %{$list{$s}{$c}}) { $item = $list{$s}{$c}{$p}; @@ -186,7 +187,7 @@ foreach my $c (sort keys %components) { } } } - `cat /tmp/report-$c-install.twiki.part /tmp/report-$c-minor-upgrade.twiki.part /tmp/report-$c-major-upgrade.twiki.part /tmp/report-$c-double-upgrade.twiki.part > /tmp/report-$c.twiki 2>/dev/null`; + `cat /tmp/report-$c-install.twiki.part /tmp/report-$c-minor-upgrade.twiki.part /tmp/report-$c-major-upgrade.twiki.part /tmp/report-$c-double-upgrade.twiki.part /tmp/report-$c-update.twiki.part > /tmp/report-$c.twiki 2>/dev/null`; `rm -f /tmp/report-$c-*.twiki.part`; } @@ -277,6 +278,15 @@ if (exists $list{'double-upgrade'}) { } } +if (exists $list{'update'}) { + print "

Minor upgrade from production

\n"; + table($list{'update'}); + print "\n"; + if (-f 'update.html.in') { + system 'cat update.html.in'; + } +} + if (exists $list{build}) { print "

Local build

\n"; table($list{build}); -- 1.8.2.3