You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/05/05 10:25:34 UTC

[hbase] branch branch-2 updated: HBASE-26995 Remove ref guide check in pre commit and nightly for branches other than master (#4399)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 9a41117ca5 HBASE-26995 Remove ref guide check in pre commit and nightly for branches other than master (#4399)
9a41117ca5 is described below

commit 9a41117ca5edaa381b913efb3b8d48f7c98e905c
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu May 5 18:25:22 2022 +0800

    HBASE-26995 Remove ref guide check in pre commit and nightly for branches other than master (#4399)
    
    Signed-off-by: Guanghao Zhang <zg...@apache.org>
    Signed-off-by: Peter Somogyi <ps...@apache.org>
---
 dev-support/hbase-personality.sh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 081ee5aaa4..e286a0ce74 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -393,10 +393,13 @@ function refguide_filefilter
 {
   local filename=$1
 
-  if [[ ${filename} =~ src/main/asciidoc ]] ||
-     [[ ${filename} =~ src/main/xslt ]] ||
-     [[ ${filename} =~ hbase-common/src/main/resources/hbase-default\.xml ]]; then
-    add_test refguide
+  # we only generate ref guide on master branch now
+  if [[ "${PATCH_BRANCH}" = master ]]; then
+    if [[ ${filename} =~ src/main/asciidoc ]] ||
+       [[ ${filename} =~ src/main/xslt ]] ||
+       [[ ${filename} =~ hbase-common/src/main/resources/hbase-default\.xml ]]; then
+      add_test refguide
+    fi
   fi
 }