5

I am using repos for Azure DevOps to connect Azure databricks to my respositories in DevOps. I need to pull automatically from Azure DevOps pipelines. For that I tried using databricks API to pull, but referring to this link there is no method for pulling.

Following the instruction and looking at swagger the only methods available are: repos API Is there a way to pull via API or CLI or any other way programmatically? If yes, how?

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
E. Erfan
  • 1,239
  • 19
  • 37
  • You can check out my answer here https://stackoverflow.com/questions/73732631/programmatic-checkout-of-databricks-repos-branch/76821583#76821583 – George Sotiropoulos Aug 02 '23 at 15:52

1 Answers1

3

You need to use PATCH endpoint as described in documentation. It will Updates the repo to the given branch (or tag) - if you already on the given branch, then it will pull the latest changes. You can also use databricks-cli for that, like, it's shown in the following demo.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
  • Unfortunately I cannot test your solution. I have exactly another problem at this link that I cannot make API call via PATCH. I have explained the errors I am getting in here: https://stackoverflow.com/questions/72256036/azure-databricks-api-cannot-add-repos-using-service-principal-and-api-calls Can you kindly see this too? – E. Erfan May 16 '22 at 21:19