From 372b3c26501391e3cee5e12349611c5d99c0e889 Mon Sep 17 00:00:00 2001 From: Nicole Zhu <69952136+nicoleczhu@users.noreply.github.com> Date: Wed, 13 Jan 2021 14:49:19 -0800 Subject: [PATCH] ci(all): fix nightly submodule name reference (#3553) --- internal/kokoro/continuous.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kokoro/continuous.sh b/internal/kokoro/continuous.sh index 12866440c12..1e87ce66d12 100755 --- a/internal/kokoro/continuous.sh +++ b/internal/kokoro/continuous.sh @@ -120,9 +120,9 @@ if [[ $KOKORO_JOB_NAME == *"continuous"* ]]; then testChangedModules fi elif [[ $KOKORO_JOB_NAME == *"nightly"* ]]; then - # Expected job name format: "/nightly/[OPTIONAL_MODULE_NAME]/[OPTIONAL_JOB_NAMES...]" + # Expected job name format: ".../nightly/[OPTIONAL_MODULE_NAME]/[OPTIONAL_JOB_NAMES...]" ARR=(${KOKORO_JOB_NAME//// }) # Splits job name by "/" where ARR[0] is expected to be "nightly". - SUBMODULE_NAME=${ARR[1]} # Gets the token after "nightly/". + SUBMODULE_NAME=${ARR[5]} # Gets the token after "nightly/". if [[ -n $SUBMODULE_NAME ]] && [[ -d "./$SUBMODULE_NAME" ]]; then # Only run tests in the submodule designated in the Kokoro job name. # Expected format example: ...google-cloud-go/nightly/logging.