mirror of https://github.com/databricks/cli.git
(ci/cd debug) prepend experiment name with an extra slash to avoid replacements in windows environments
This commit is contained in:
parent
35d4a70739
commit
4f6649ffd7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue