summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2017-03-21 17:03:43 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-03-27 14:05:54 -0400
commit8ae9a2c137ebc771ed1ad34c24d93f55d508e175 (patch)
tree4e3c270d6440f57f21aa58f0351641bad9df4d01 /src/build
parente3f96fd23f10df2c0a82b26ac0afa5708f8b28dc (diff)
downloadblackbird-hostboot-8ae9a2c137ebc771ed1ad34c24d93f55d508e175.tar.gz
blackbird-hostboot-8ae9a2c137ebc771ed1ad34c24d93f55d508e175.zip
Adding important information in an easy-to-read format
There was a need to have easier access to some information about the Automatic Hostboot Release. At the end of both Phase 1 and Phase 2 this will print out the bestquest number and link, track number, and every commit in the release. Change-Id: Ie85459c37335e3dd4ae26338affa93de2c67c7f1 RTC:169421 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38266 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/tools/hbRelease58
1 files changed, 57 insertions, 1 deletions
diff --git a/src/build/tools/hbRelease b/src/build/tools/hbRelease
index b785ec83b..fe6eebca7 100755
--- a/src/build/tools/hbRelease
+++ b/src/build/tools/hbRelease
@@ -475,6 +475,14 @@ sub execute_pre_release
#Complete Fix Records
run_system_command("Fix -complete -feature $feature -release $release -component esw_hbfw -verbose");
+
+ #Get ClearQuest ID
+ my $response = run_system_command("Feature -view $feature");
+ my ($cq_id) = $response =~ /CQID\s+(.*)/;
+ print $cq_id if $debug;
+
+ #Print out Debug information
+ print_debug_info($level, $feature, $cq_id, $released);
}
sub execute_post_release
@@ -507,7 +515,7 @@ sub execute_post_release
run_system_command("git fetch gerrit refs/tags/$level");
run_system_command("git checkout FETCH_HEAD");
publish_cq($level, $cq_id, $released);
-
+ print_debug_info($level, $feature, $cq_id, $released);
}
sub execute_gerrit_commit
@@ -1771,6 +1779,54 @@ sub publish_cq
}
}
+#
+# Sub print_debug_info
+# @brief This subroutine prints out some important information at the
+# end of Phase 2 of the Automatic Release process.
+#
+
+sub print_debug_info
+{
+ my ($level, $feature, $cq_id, $released) = @_;
+
+
+ print "\n\nHostboot Release debugging information.....\n";
+ print "\nHostboot Official Release Notes\n";
+
+ print "Level $level Included commits:\n";
+
+ my $commits = git_commit_history($level,$released);
+ foreach my $commit (@{$commits})
+ {
+ my $cq = cq_workitem_num($commit);
+ my $rtc = rtc_workitem_num($commit);
+ my $changenum = "";
+ my $subject = git_get_subject($commit);
+
+ # Find if the commit has a CQ # or an RTC #.
+ if ($cq ne "")
+ {
+ $changenum = "$cq ";
+ }
+ elsif ($rtc ne "")
+ {
+ $changenum = "$rtc ";
+ }
+ else
+ {
+ $changenum = "--------- ";
+ }
+
+ print "$changenum$subject\n";
+ }
+
+ print "\nThe Bestquest track number is $cq_id\n";
+ print "And the Bestquest link is http://w3.rchland.ibm.com/projects/bestquest/?defect=$cq_id&table=requirement\n\n";
+ print "The release feature number is $feature\n";
+ print "This release this is based on is $released\n";
+
+}
+
# sub gerrit_ssh_command
#
# Creates a properly formed ssh command based on the server address.
OpenPOWER on IntegriCloud