(ci/cd debug) prepend experiment name with an extra slash to avoid replacements in windows environments

This commit is contained in:
Anton Nekipelov 2025-03-11 17:25:57 +01:00
parent 35d4a70739
commit 4f6649ffd7
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@ title "Substitute variables in the template"
BUNDLE_NAME_SUFFIX=$(uuid) BUNDLE_NAME_SUFFIX=$(uuid)
export BUNDLE_NAME_SUFFIX export BUNDLE_NAME_SUFFIX
EXPERIMENT_NAME="/Workspace/Users/${CURRENT_USER_NAME}/test-experiment$(uuid)" # double slash at the start prevents Windows to apply replacements to the path
EXPERIMENT_NAME="//Workspace/Users/${CURRENT_USER_NAME}/test-experiment$(uuid)"
if [ -z "$CLOUD_ENV" ]; then if [ -z "$CLOUD_ENV" ]; then
EXPERIMENT_NAME="/Workspace/Users/${CURRENT_USER_NAME}/test-experiment6260d50f-e8ff-4905-8f28-812345678903" # use hard-coded uuid when running locally EXPERIMENT_NAME="//Workspace/Users/${CURRENT_USER_NAME}/test-experiment6260d50f-e8ff-4905-8f28-812345678903" # use hard-coded uuid when running locally
fi fi
export EXPERIMENT_NAME export EXPERIMENT_NAME
envsubst < databricks.yml > out.yml && mv out.yml databricks.yml envsubst < databricks.yml > out.yml && mv out.yml databricks.yml