From e6d2cdb3be25123ce45a470f32ebf2fffdc6e45f Mon Sep 17 00:00:00 2001 From: atreyadbrx Date: Tue, 24 Nov 2026 17:19:43 +0000 Subject: [PATCH 1/2] Launch bundle auto-deploy Unhides the `bundle auto-deploy` command group and adds its changelog entry. Co-authored-by: Isaac Signed-off-by: atreyadbrx --- .nextchanges/bundles/auto-deploy.md | 1 + .../help/bundle-auto-deploy/out.test.toml | 2 ++ .../bundle/help/bundle-auto-deploy/output.txt | 33 +++++++++++++++++++ .../bundle/help/bundle-auto-deploy/script | 1 + acceptance/bundle/help/bundle/output.txt | 1 + cmd/bundle/autodeploy/autodeploy.go | 3 -- 6 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 .nextchanges/bundles/auto-deploy.md create mode 100644 acceptance/bundle/help/bundle-auto-deploy/out.test.toml create mode 100644 acceptance/bundle/help/bundle-auto-deploy/output.txt create mode 100644 acceptance/bundle/help/bundle-auto-deploy/script diff --git a/.nextchanges/bundles/auto-deploy.md b/.nextchanges/bundles/auto-deploy.md new file mode 100644 index 00000000000..78f24138fd6 --- /dev/null +++ b/.nextchanges/bundles/auto-deploy.md @@ -0,0 +1 @@ +* Add `databricks bundle auto-deploy` commands, which deploy a bundle target on every push to a Git branch and show its deploy attempts. diff --git a/acceptance/bundle/help/bundle-auto-deploy/out.test.toml b/acceptance/bundle/help/bundle-auto-deploy/out.test.toml new file mode 100644 index 00000000000..a927a5fbc06 --- /dev/null +++ b/acceptance/bundle/help/bundle-auto-deploy/out.test.toml @@ -0,0 +1,2 @@ +Cloud = false +EnvMatrix.DMS = ["", "true"] diff --git a/acceptance/bundle/help/bundle-auto-deploy/output.txt b/acceptance/bundle/help/bundle-auto-deploy/output.txt new file mode 100644 index 00000000000..a85cb37a950 --- /dev/null +++ b/acceptance/bundle/help/bundle-auto-deploy/output.txt @@ -0,0 +1,33 @@ + +>>> [CLI] bundle auto-deploy --help +Set up and inspect auto-deploy for a bundle target. + +Auto-deploy deploys a bundle target whenever commits are pushed to a branch of +the bundle's Git repository. Run these commands from the bundle directory. The +trigger is identified by the bundle's origin URL, its path in the repository +and the target (-t). + +Example: + databricks bundle auto-deploy create -t prod --branch main + +Usage: + databricks bundle auto-deploy [command] + +Available Commands: + attempts List the auto-deploy attempts of this bundle target, or show one + create Deploy this bundle target on every push to a branch + delete Stop auto-deploying this bundle target + get Show the auto-deploy trigger of this bundle target + list List the auto-deploy triggers of this bundle's targets + +Flags: + -h, --help[=true|false] help for auto-deploy + +Global Flags: + --debug[=true|false] enable debug logging + -o, --output type output type: text or json (default text) + -p, --profile string ~/.databrickscfg profile + -t, --target string bundle target to use (if applicable) + --var strings set values for variables defined in bundle config. Example: --var="foo=bar" + +Use "databricks bundle auto-deploy [command] --help" for more information about a command. diff --git a/acceptance/bundle/help/bundle-auto-deploy/script b/acceptance/bundle/help/bundle-auto-deploy/script new file mode 100644 index 00000000000..c6d57ababa2 --- /dev/null +++ b/acceptance/bundle/help/bundle-auto-deploy/script @@ -0,0 +1 @@ +trace $CLI bundle auto-deploy --help diff --git a/acceptance/bundle/help/bundle/output.txt b/acceptance/bundle/help/bundle/output.txt index 9d3776b9088..66963e33ba7 100644 --- a/acceptance/bundle/help/bundle/output.txt +++ b/acceptance/bundle/help/bundle/output.txt @@ -18,6 +18,7 @@ Usage: databricks bundle [command] Available Commands: + auto-deploy Deploy a bundle target on every push to a Git branch deploy Deploy bundle deployment Deployment related commands destroy Destroy deployed bundle resources diff --git a/cmd/bundle/autodeploy/autodeploy.go b/cmd/bundle/autodeploy/autodeploy.go index 836e90c277a..7f58308a863 100644 --- a/cmd/bundle/autodeploy/autodeploy.go +++ b/cmd/bundle/autodeploy/autodeploy.go @@ -17,9 +17,6 @@ and the target (-t). Example: databricks bundle auto-deploy create -t prod --branch main`, - - // Hidden until the git-webhooks API is public. - Hidden: true, } cmd.AddCommand(newCreateCommand()) From 89f7ec57b712e74da53ad1e066b227781c44f647 Mon Sep 17 00:00:00 2001 From: atreyadbrx Date: Tue, 24 Nov 2026 17:48:57 +0000 Subject: [PATCH 2/2] Link the auto-deploy changelog entry to its PRs Co-authored-by: Isaac Signed-off-by: atreyadbrx --- .nextchanges/bundles/auto-deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nextchanges/bundles/auto-deploy.md b/.nextchanges/bundles/auto-deploy.md index 78f24138fd6..cdc589a3ebd 100644 --- a/.nextchanges/bundles/auto-deploy.md +++ b/.nextchanges/bundles/auto-deploy.md @@ -1 +1 @@ -* Add `databricks bundle auto-deploy` commands, which deploy a bundle target on every push to a Git branch and show its deploy attempts. +* Add `databricks bundle auto-deploy` commands, which deploy a bundle target on every push to a Git branch and show its deploy attempts. ([#7940](https://github.com/databricks/cli/pull/7940), [#7941](https://github.com/databricks/cli/pull/7941), [#7942](https://github.com/databricks/cli/pull/7942), [#7943](https://github.com/databricks/cli/pull/7943), [#7944](https://github.com/databricks/cli/pull/7944))