diff options
author | Sumit Kumar <sumit_kumar@in.ibm.com> | 2017-12-20 04:02:13 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-12-20 21:25:41 -0500 |
commit | 75756bf696b44ed2274b3b8231aa8367b9480eb2 (patch) | |
tree | 003d0afcd2463a52e5878df104e7098e3c0bcb32 | |
parent | ea100b11fb1cc15659c334aec2fb712d8aaf039a (diff) | |
download | talos-sbe-75756bf696b44ed2274b3b8231aa8367b9480eb2.tar.gz talos-sbe-75756bf696b44ed2274b3b8231aa8367b9480eb2.zip |
gitRelease: Check master branch if query on rel branch fails
Change-Id: I1f39c95d11b9a2a0b03a7303d2024f63e295f43a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51174
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rwxr-xr-x | src/tools/utils/gitRelease.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/utils/gitRelease.pl b/src/tools/utils/gitRelease.pl index 9fa2fe20..17895195 100755 --- a/src/tools/utils/gitRelease.pl +++ b/src/tools/utils/gitRelease.pl @@ -1651,6 +1651,13 @@ sub gerrit_query_commit my $query_result = gerrit_query("$commit project:$project ". "branch:".$globals{"branch"}); + + if ($query_result eq "") + { + $query_result = gerrit_query("$commit project:$project ". + "branch:master"); + } + foreach my $result (@{$query_result}) { if ($result->{id} eq $commit || |