HBASE-19060 precommit plugin test 'hadoopcheck' should only run when java or maven files change.
Signed-off-by: Mike Drob <mdrob@apache.org>
This commit is contained in:
parent
89d3b0b07f
commit
dd4dbae764
|
@ -218,7 +218,7 @@ function hadoopcheck_filefilter
|
|||
{
|
||||
local filename=$1
|
||||
|
||||
if [[ ${filename} =~ \.java$ ]]; then
|
||||
if [[ ${filename} =~ \.java$ ]] || [[ ${filename} =~ pom.xml$ ]]; then
|
||||
add_test hadoopcheck
|
||||
fi
|
||||
}
|
||||
|
@ -241,6 +241,10 @@ function hadoopcheck_rebuild
|
|||
return 0
|
||||
fi
|
||||
|
||||
if ! verify_needed_test hadoopcheck; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
big_console_header "Compiling against various Hadoop versions"
|
||||
|
||||
# All supported Hadoop versions that we want to test the compilation with
|
||||
|
@ -317,7 +321,7 @@ function hbaseprotoc_filefilter
|
|||
fi
|
||||
}
|
||||
|
||||
## @description hadoopcheck test
|
||||
## @description check hbase proto compilation
|
||||
## @audience private
|
||||
## @stability evolving
|
||||
## @param repostatus
|
||||
|
|
Loading…
Reference in New Issue