From 602b16a61673bf49ef358ea1dbe777af8ec160de Mon Sep 17 00:00:00 2001 From: Tim Liu Date: Thu, 6 Feb 2025 08:58:09 +0800 Subject: [PATCH] Run mvn with the project's pom.xml in hybrid_execution.sh (#12064) This script may run outside the project root path, so we use 'mvn -f $project_root' to target the project's pom.xml To follow up: https://github.com/NVIDIA/spark-rapids/pull/12054/ Signed-off-by: timl --- jenkins/hybrid_execution.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/hybrid_execution.sh b/jenkins/hybrid_execution.sh index 761e93d4e49..09058afc30a 100755 --- a/jenkins/hybrid_execution.sh +++ b/jenkins/hybrid_execution.sh @@ -32,7 +32,9 @@ hybrid_prepare(){ fi echo "Downloading hybrid execution dependency jars..." - RAPIDS_HYBRID_VER=${RAPIDS_HYBRID_VER:-$(mvn -B -q help:evaluate -Dexpression=spark-rapids-hybrid.version -DforceStdout)} + project_root=$(git rev-parse --show-toplevel) + # This script may run outside the project root path, so we use mvn -f $project_root to target the project's pom.xml + RAPIDS_HYBRID_VER=${RAPIDS_HYBRID_VER:-$(mvn -f $project_root -B -q help:evaluate -Dexpression=spark-rapids-hybrid.version -DforceStdout)} RAPIDS_HYBRID_URL=${RAPIDS_HYBRID_URL:-$URM_URL} GLUTEN_BUNDLE_JAR="gluten-velox-bundle-${GLUTEN_VERSION}-spark${spark_prefix}_${SCALA_BINARY_VER}-${os_version}_${cup_arch}.jar" HYBRID_JAR="rapids-4-spark-hybrid_${SCALA_BINARY_VER}-${RAPIDS_HYBRID_VER}.jar"