# HG changeset patch # User Dario Sestito # Date 1250679192 -3600 # Node ID cde2244c8ea666bb551aeda8d6d15c9bdb2f3d29 # Parent 95e054b2bec1b33bd0f2765ceceb367a72648a0e First drop of script to generate build summary diff -r 95e054b2bec1 -r cde2244c8ea6 common/build.xml --- a/common/build.xml Tue Aug 18 15:39:56 2009 +0100 +++ b/common/build.xml Wed Aug 19 11:53:12 2009 +0100 @@ -77,6 +77,16 @@ [SF-BUILD-ALL] + + [SF-SUMMARY] + + + + + + + + [SF-BUILD-AND-PACK] diff -r 95e054b2bec1 -r cde2244c8ea6 common/diamonds/sf-run-analysis.xml.ftl --- a/common/diamonds/sf-run-analysis.xml.ftl Tue Aug 18 15:39:56 2009 +0100 +++ b/common/diamonds/sf-run-analysis.xml.ftl Wed Aug 19 11:53:12 2009 +0100 @@ -32,6 +32,11 @@ Raptor summary file:///${ant['sf.spec.publish.networkdrive']}\${ant['sf.spec.job.name']}\builds\${ant['sf.spec.job.codeline']}\${ant['build.id']}\logs\raptorbits\summary.csv + + log + Build Summary + file:///${ant['sf.spec.publish.networkdrive']}\${ant['sf.spec.job.name']}\builds\${ant['sf.spec.job.codeline']}\${ant['build.id']}\build_summary.html + \ No newline at end of file diff -r 95e054b2bec1 -r cde2244c8ea6 common/tools/summary/brag_script.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/summary/brag_script.pl Wed Aug 19 11:53:12 2009 +0100 @@ -0,0 +1,57 @@ +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# +# Contributors: +# +# Description: +# Generate build summary with BRAG status + +use Getopt::Long; + +my $buildid = ''; +my $basedir = ''; +my $help = 0; +GetOptions(( + 'buildid=s' => \$buildid, + 'basedir=s' => \$basedir, + 'help!' => \$help +)); + +$help = 1 if (!$buildid or !$basedir); + +if ($help) +{ + print "Generate build summary with BRAG status\n"; + print "Usage: perl brag_script.pl --buildid=ID --basedir=DIR\n"; + exit(0); +} + +$buildid =~ /^([^_]*)_([^.]*)\./; +my $project = $1; +my $codeline = $2; + +my $logdir = "$basedir\\$buildid\\output\\logs"; + +opendir(DIR, $logdir); +my @dir_content = readdir(DIR); +close(DIR); +#my @asSimilarDirs = grep(/^$sBaseName(\.|$)/, @asDirs); + +my $nfiles = scalar(@dir_content); + + +open(FILE, ">$logdir\\build_summary.html"); +print FILE "build summary
build id: $buildid
log files: $nfiles"; +close(FILE); + +my $copy_cmd = "copy $logdir\\build_summary.html \\\\bishare\\sf_builds\\$project\\builds\\$codeline\\$buildid"; +print "Exec: $copy_cmd\n"; +system($copy_cmd); + +