Skip to content

Commit

Permalink
ci(all): fix nightly submodule name reference (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSage committed Jan 13, 2021
1 parent a2167f5 commit 372b3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kokoro/continuous.sh
Expand Up @@ -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.
Expand Down

0 comments on commit 372b3c2

Please sign in to comment.