diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-03-13 09:58:23 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-03-13 10:28:25 -0500 |
commit | e7aa9a69d27307c5a01df5e2806e8e85a8cb0df9 (patch) | |
tree | 36fdd452428b2235abf43cab02bba3cd0898889d /src | |
parent | a545a8be9355dff75dad01ca4c89b7b2397366e4 (diff) | |
download | talos-hostboot-e7aa9a69d27307c5a01df5e2806e8e85a8cb0df9.tar.gz talos-hostboot-e7aa9a69d27307c5a01df5e2806e8e85a8cb0df9.zip |
hbRelease: Add 'project' option to query-gerrit
Change-Id: I808d0d41334fa5d5eab8e0b3bfe33a70a3195252
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3531
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/build/tools/hbRelease | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/build/tools/hbRelease b/src/build/tools/hbRelease index 21f3b6796..8ca2913a2 100755 --- a/src/build/tools/hbRelease +++ b/src/build/tools/hbRelease @@ -1,26 +1,26 @@ #!/usr/bin/perl -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. # -# $Source: src/build/tools/hbRelease $ +# $Source: src/build/tools/hbRelease $ # -# IBM CONFIDENTIAL +# IBM CONFIDENTIAL # -# COPYRIGHT International Business Machines Corp. 2012 +# COPYRIGHT International Business Machines Corp. 2012,2013 # -# p1 +# p1 # -# Object Code Only (OCO) source materials -# Licensed Internal Code Source Materials -# IBM HostBoot Licensed Internal Code +# Object Code Only (OCO) source materials +# Licensed Internal Code Source Materials +# IBM HostBoot Licensed Internal Code # -# The source code for this program is not published or other- -# wise divested of its trade secrets, irrespective of what has -# been deposited with the U.S. Copyright Office. +# The source code for this program is not published or otherwise +# divested of its trade secrets, irrespective of what has been +# deposited with the U.S. Copyright Office. # -# Origin: 30 +# Origin: 30 # -# IBM_PROLOG_END +# IBM_PROLOG_END_TAG use strict; @@ -113,7 +113,16 @@ sub execute_undef sub execute_gerrit_query { - my $items = gerrit_query("status:open project:".config_project()); + my $project = ""; + + GetOptions("project:s" => \$project); + + if ("" eq $project) + { + $project = config_project(); + } + + my $items = gerrit_query("status:open project:$project"); foreach my $item (@$items) { |