diff --git a/dev-support/ci/selective_ci_checks.bats b/dev-support/ci/selective_ci_checks.bats index 99085c942e01..e1d5ee7578b5 100644 --- a/dev-support/ci/selective_ci_checks.bats +++ b/dev-support/ci/selective_ci_checks.bats @@ -99,6 +99,17 @@ load bats-assert/load.bash assert_output -p needs-kubernetes-tests=true } +@test "java test + pmd change" { + run dev-support/ci/selective_ci_checks.sh 250bd5f317 + + assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs","pmd"]' + assert_output -p needs-build=true + assert_output -p needs-compile=true + assert_output -p needs-compose-tests=false + assert_output -p needs-integration-tests=true + assert_output -p needs-kubernetes-tests=false +} + @test "integration and unit: java change" { run dev-support/ci/selective_ci_checks.sh 9aebf6e25 diff --git a/dev-support/ci/selective_ci_checks.sh b/dev-support/ci/selective_ci_checks.sh index 213d071b9119..1017f354eba0 100755 --- a/dev-support/ci/selective_ci_checks.sh +++ b/dev-support/ci/selective_ci_checks.sh @@ -487,6 +487,7 @@ function get_count_misc_files() { "\.txt$" "\.md$" "findbugsExcludeFile.xml" + "pmd-ruleset.xml" "/NOTICE$" "^hadoop-ozone/dist/src/main/compose/common/grafana/dashboards" )