Skip to content

Commit

Permalink
Add jenkins-level retry for mvn build in databricks
Browse files Browse the repository at this point in the history
Signed-off-by: Peixin Li <[email protected]>
  • Loading branch information
pxLi committed Nov 3, 2023
1 parent 54145c4 commit 2e15dec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jenkins/Jenkinsfile-blossom.premerge-databricks
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ void databricksBuild() {
def BUILD_PARAMS = " -w $DATABRICKS_HOST -t $DATABRICKS_TOKEN -c $CLUSTER_ID -z ./spark-rapids-ci.tgz" +
" -p $DATABRICKS_PRIVKEY -l ./jenkins/databricks/build.sh -d /home/ubuntu/build.sh" +
" -v $BASE_SPARK_VERSION -i $BASE_SPARK_VERSION_TO_INSTALL_DATABRICKS_JARS"
sh "python3 ./jenkins/databricks/run-build.py $BUILD_PARAMS"

// add retry for build step to try
// mitigate the issue of downloading dependencies while maven/sonatype is quite unstable
retry(3) {
sh "python3 ./jenkins/databricks/run-build.py $BUILD_PARAMS"
}
}
}
}
Expand Down

0 comments on commit 2e15dec

Please sign in to comment.