HBASE-26995 Remove ref guide check in pre commit and nightly for branches other than master (#4399)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
(cherry picked from commit 9a41117ca5)
This commit is contained in:
Duo Zhang 2022-05-05 18:25:22 +08:00
parent 5c15ac63de
commit c6b240bd91
1 changed files with 7 additions and 4 deletions

View File

@ -347,11 +347,14 @@ function refguide_filefilter
{ {
local filename=$1 local filename=$1
# we only generate ref guide on master branch now
if [[ "${PATCH_BRANCH}" = master ]]; then
if [[ ${filename} =~ src/main/asciidoc ]] || if [[ ${filename} =~ src/main/asciidoc ]] ||
[[ ${filename} =~ src/main/xslt ]] || [[ ${filename} =~ src/main/xslt ]] ||
[[ ${filename} =~ hbase-common/src/main/resources/hbase-default.xml ]]; then [[ ${filename} =~ hbase-common/src/main/resources/hbase-default\.xml ]]; then
add_test refguide add_test refguide
fi fi
fi
} }
function refguide_rebuild function refguide_rebuild