Saving old versions in folder
Former-commit-id: 86ab1f1a09bbf0b400c25211c4028371a6ff1229
This commit is contained in:
Родитель
150c9e4f3a
Коммит
dc1612e13c
|
@ -37,11 +37,11 @@ stages:
|
|||
echo "DBFS URL ${DATABRICKS_HOST}"
|
||||
echo "Move previous versions of the library in cluster from ${DATABRICKS_LIB_PATH}/new_version/ ${DATABRICKS_LIB_PATH}/old_version"
|
||||
databricks fs mkdirs "${DATABRICKS_LIB_PATH}/old_version"
|
||||
databricks fs cp --overwrite -r "${DATABRICKS_LIB_PATH}/new_version" "${DATABRICKS_LIB_PATH}/old_version"
|
||||
databricks fs rm -r "${DATABRICKS_LIB_PATH}/new_version"
|
||||
databricks fs mkdirs "${DATABRICKS_LIB_PATH}/new_version"
|
||||
databricks fs cp --overwrite -r "${DATABRICKS_LIB_PATH}/new_version/" "${DATABRICKS_LIB_PATH}/old_version/"
|
||||
databricks fs rm -r "${DATABRICKS_LIB_PATH}/new_version/dataops*.whl"
|
||||
echo "Copy library in cluster from ${PYPI_REPO} to ${DATABRICKS_LIB_PATH}/new_version/"
|
||||
databricks fs cp --overwrite -r "${PYPI_REPO}" "${DATABRICKS_LIB_PATH}/new_version/"
|
||||
echo "Copy library in cluster from ${PYPI_REPO} to ${DATABRICKS_LIB_PATH}/new_version"
|
||||
databricks fs cp --overwrite -r "${PYPI_REPO}" "${DATABRICKS_LIB_PATH}/new_version"
|
||||
env:
|
||||
DATABRICKS_HOST: https://$(databricksWorkspaceUrl)
|
||||
DATABRICKS_TOKEN: $(DATABRICKS_TOKEN)
|
||||
|
|
Загрузка…
Ссылка в новой задаче