Cannot update databricks repos in Devops Pipeline

erigaud
Honored Contributor

Hello,

I am creating a Devops pipeline to run unit tests in my notebooks using the Nutter library. When a commit is pushed to a branch, I have a pipeline that triggers, and it should update my repo in a folder Staging (/Repos/Staging/MyRepo)

For that I have the following pipeline : 

script: |
    databricks repos update --path $(STAGING_DIRECTORY) --branch "my_current_branch"
  env:
    DATABRICKS_HOST$(databricks_host)
    DATABRICKS_TOKEN$(databricks_token)
  displayName'Update Staging project'

When running, this command fails with the following error : 

Error: InvalidSchema: No connection adapters were found for '://None/api/2.0/workspace/get-status'

Do you have an idea of what could cause this error ? I can provide more details if needed.

Thank you