Skip to content

Commit e006560

Browse files
authored
Added documentation for git_source in databricks_job (#1297)
1 parent efe1c74 commit e006560

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/resources/job.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ You can invoke Spark submit tasks only on new clusters. **In the `new_cluster` s
175175
* `on_start` - (Optional) (List) list of emails to notify on failure
176176
* `on_success` - (Optional) (List) list of emails to notify on failure
177177

178+
### git_source Configuration Block
179+
180+
This block is used to specify Git repository information & branch/tag/commit that will be used to pull source code from to execute a job. Supported options are:
181+
182+
* `url` - (Required) URL of the Git repository to use.
183+
* `provider` - (Optional, if it's possible to detect Git provider by host name) case insensitive name of the Git provider. Following values are supported right now (could be a subject for change, consult [Repos API documentation](https://docs.databricks.com/dev-tools/api/latest/repos.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`.
184+
* `branch` - name of the Git branch to use. Conflicts with `tag` and `commit`.
185+
* `tag` - name of the Git branch to use. Conflicts with `branch` and `commit`.
186+
* `commit` - hash of Git commit to use. Conflicts with `branch` and `tag`.
187+
178188
### Exported attributes
179189

180190
In addition to all arguments above, the following attributes are exported:

0 commit comments

Comments
 (0)