Skip to main content

Git Source

Specifies the name of the variable in the databricks.yml file that holds the Git URL and provider configuration for Databricks.

When a value is set, the generated Databricks Asset Bundle job tasks use source: GIT and the job definition references git_source: ${var.<name>}, a complex variable (Git URL, provider, and branch) defined in databricks.yml. The sample databricks.yml generated by the build includes such a variable. When the value is blank, tasks use source: WORKSPACE and run the notebooks deployed to the workspace instead.

When to Change This Setting

Keep the default git_source (and define the matching variable in databricks.yml) when jobs should run notebooks directly from a Git repository. Clear the value to run notebooks from the workspace file system, for example when the asset bundle deploys the notebooks itself.

SettingInteraction
Repository NameResolves the @@Repository token in the notebook path
Notebook PathThe path the job tasks load notebooks from
Job ClusterThe companion databricks.yml variable reference for compute

Notes

  • This setting is part of the Databricks settings category.
  • The default value for this setting is git_source.