Former-commit-id: 86ab1f1a09bbf0b400c25211c4028371a6ff1229
This commit is contained in:
Ana Lopez 2021-07-27 23:45:29 +00:00
Родитель 150c9e4f3a
Коммит dc1612e13c
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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)