summaryrefslogtreecommitdiffstats
path: root/src/build/tools/hbRelease
diff options
context:
space:
mode:
authorBill Hoffa <wghoffa@us.ibm.com>2018-06-01 16:46:17 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-06-01 19:10:27 -0400
commit6bb10d4941533e21d5b01c634d7f2fcaed83364c (patch)
tree7411831d668702705bb9d53b5c13af32444d1abc /src/build/tools/hbRelease
parentf3b2f887b8545c5aa529b987a39913b0bcd59350 (diff)
downloadtalos-hostboot-6bb10d4941533e21d5b01c634d7f2fcaed83364c.tar.gz
talos-hostboot-6bb10d4941533e21d5b01c634d7f2fcaed83364c.zip
Force hbRelease to search 'master' branch
- There was a situation where first searching for release-fips920 would find a commit, but with a different number of patchsets and would cause errors. Change-Id: Ie8c86e446a993b4e7d80459eb1398b321b640c62 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59778 Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/tools/hbRelease')
-rwxr-xr-xsrc/build/tools/hbRelease23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/build/tools/hbRelease b/src/build/tools/hbRelease
index 898c2bbac..ba851756d 100755
--- a/src/build/tools/hbRelease
+++ b/src/build/tools/hbRelease
@@ -2137,6 +2137,15 @@ sub gerrit_query_commit
my $project = config_project();
+ #Temporary Hack to look for commit in master branch if not found in
+ # release-fips920
+ if (($project eq "hostboot") and $globals{"branch"} eq "release-fips920")
+ {
+ print "Automatically searching for $commit in $project/$globals{\"branch\"} \n" if $debug;
+ # Force next iteration to look for master branch
+ $globals{"branch"}="master";
+ gerrit_query_commit($commit);
+ }
my $query_result = gerrit_query("$commit project:$project ".
"branch:".$globals{"branch"});
@@ -2159,20 +2168,6 @@ sub gerrit_query_commit
}
}
}
-
- #Temporary Hack to look for commit in master branch if not found in
- # release-fips920
- if (($project eq "hostboot") and $globals{"branch"} eq "release-fips920")
- {
- print "Cannot find $commit in $project/$globals{\"branch\"} \n" if $debug;
- # Force next iteration to look for master branch
- $globals{"branch"}="master";
- gerrit_query_commit($commit);
- }
- else
- {
- die "Cannot find $commit in $project/$globals{\"branch\"}";
- }
}
# sub gerrit_is_patch
OpenPOWER on IntegriCloud