Skip to content

Commit

Permalink
Fix CI: can't find script when there is pushd in script [skip ci] (#1…
Browse files Browse the repository at this point in the history
…0135)

* Fix CI: can't find script when there is pushd in script

Signed-off-by: Chong Gao <[email protected]>

* Update Copy rights

---------

Signed-off-by: Chong Gao <[email protected]>
Co-authored-by: Chong Gao <[email protected]>
  • Loading branch information
res-life and Chong Gao authored Jan 3, 2024
1 parent ace4870 commit f28f258
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jenkins/spark-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2019-2024, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,6 +20,8 @@ set -ex
nvidia-smi

. jenkins/version-def.sh
# if run in jenkins WORKSPACE refers to rapids root path; if not run in jenkins just use current pwd(contains jenkins dirs)
WORKSPACE=${WORKSPACE:-`pwd`}

ARTF_ROOT="$WORKSPACE/jars"
MVN_GET_CMD="mvn -Dmaven.wagon.http.retryHandler.count=3 org.apache.maven.plugins:maven-dependency-plugin:2.8:get -B \
Expand Down Expand Up @@ -273,7 +275,7 @@ run_pyarrow_tests() {

run_non_utc_time_zone_tests() {
# select one time zone according to current day of week
source "$(dirname "$0")"/test-timezones.sh
source "${WORKSPACE}/jenkins/test-timezones.sh"
time_zones_length=${#time_zones_test_cases[@]}
# get day of week, Sunday is represented by 0 and Saturday by 6
current_date=$(date +%w)
Expand Down

0 comments on commit f28f258

Please sign in to comment.