cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to specify a specific branch commit when deploying repo to a workspace via the Databricks CLI?

huggies_23
New Contributor

I would like to know if it is possible to include a specific commit identifier when updating a repo in a workspace via the Databricks CLI.

Why? Currently we use the repos CLI to push updates to code throughout dev, test and prod (testing along the way). We use repos as we also need available non-notebook files available in the repo, and this set up allows our teams to work more independently knowing they can deploy the files they need contained within a single repo. When an update to say the prod branch is made, an ADO Release pipeline runs which executes on command line something like

databricks repos update --path "<path_to_repo_on_workspace>" --branch "prod"

Usually when deploying based on updates to branches (to say copy files to a network drive) we would easily be able to re-release a previous release if any issues were encountered with the latest know working release as each release artifact (new git branch commit) has a commit (or Build.SourceVersion variable in ADO release pipeline variables) which can be redeployed with a single click should it be required.

However, the databricks CLI command presumably has no exposure to the commit linked with a release, and therefore if an earlier release is redeployed it will simply update the repo on the workspace to the latest commit of the branch despite the release being linked to an earlier commit.

Does anyone know if there is a way to link the databricks repos update cli command with a specific commit (i.e. is it possible to link the commit identifier with the command somehow)?

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group