cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.