Skip to content

Commit 82cbfee

Browse files
authored
pipeline deploy: pipeline CLI prints url of resources it deploys (#3302)
## Changes Load URLs and print them to the output upon deploy, in sorted order by resource key per group. Done for all resources, as all resources have a URL. ## Why Make it easy for users to open the pipeline upon deploy. ## Tests Updated tests to reflect new URL. Example output: `Recommendation: define a single pipeline in a file with the .pipeline.yml extension. at resources.pipelines.my_project_pipeline resources.pipelines.my_project_pipeline_2 in my_project.pipeline.yml:14:7 my_project.pipeline.yml:4:7 The following resources are defined or configured in this file: - my_project_pipeline (pipeline) - my_project_pipeline_2 (pipeline) Uploading bundle files to /Workspace/Users/[email protected]/.bundle/my_project/dev/files... Deploying resources... Updating deployment state... Deployment complete! View your pipeline my_project_pipeline here: https://e2-dogfood.staging.cloud.databricks.com/pipelines/30a51637-aa02-45f8-845f-58aa90f9cac4?o=6051921418418893 View your pipeline my_project_pipeline_2 here: https://e2-dogfood.staging.cloud.databricks.com/pipelines/d2934f55-a952-47d3-aa7e-74961412cbf8?o=6051921418418893 `
1 parent 39cc564 commit 82cbfee

File tree

20 files changed

+37
-0
lines changed

20 files changed

+37
-0
lines changed

acceptance/pipelines/deploy/auto-approve/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-auto
44
Deploying resources...
55
Updating deployment state...
66
Deployment complete!
7+
View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
78

89
=== Remove resources from configuration to test auto-approve
910
>>> rm resources.yml

acceptance/pipelines/deploy/create-pipeline/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-create-pipeli
44
Deploying resources...
55
Updating deployment state...
66
Deployment complete!
7+
View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
78

89
>>> [CLI] pipelines get [UUID]
910
{

acceptance/pipelines/deploy/fail-on-active-runs/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pipeline-fail-on-a
44
Deploying resources...
55
Updating deployment state...
66
Deployment complete!
7+
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
78

89
>>> errcode [PIPELINES] deploy --fail-on-active-runs
910
Error: pipeline [UUID] is running

acceptance/pipelines/deploy/force-lock/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-forc
1616
Deploying resources...
1717
Updating deployment state...
1818
Deployment complete!
19+
View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]

acceptance/pipelines/deploy/render-diagnostics-warning/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/render-diagnostics
88
Deploying resources...
99
Updating deployment state...
1010
Deployment complete!
11+
View your pipeline test-pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1112
<EOL>

acceptance/pipelines/deploy/var-flag/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-var-
55
Deploying resources...
66
Updating deployment state...
77
Deployment complete!
8+
View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
89

910
=== Verify: Check that variables were substituted correctly
1011
>>> [CLI] pipelines get [UUID]

acceptance/pipelines/destroy/auto-approve/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-dest
55
Deploying resources...
66
Updating deployment state...
77
Deployment complete!
8+
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
89

910
>>> errcode [PIPELINES] destroy
1011
Error: please specify --auto-approve to skip interactive confirmation checks for non tty consoles

acceptance/pipelines/destroy/destroy-pipeline/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-dest
55
Deploying resources...
66
Updating deployment state...
77
Deployment complete!
8+
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
89

910
>>> [PIPELINES] destroy --auto-approve
1011
The following resources will be deleted:

acceptance/pipelines/destroy/force-lock/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-forc
44
Deploying resources...
55
Updating deployment state...
66
Deployment complete!
7+
View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
78

89
=== upload lock file
910
>>> [CLI] workspace import /Workspace/Users/[USERNAME]/.bundle/test-pipeline-force-lock/default/state/deploy.lock --format AUTO --file ./deploy.lock

acceptance/pipelines/dry-run/dry-run-pipeline/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run/
44
Deploying resources...
55
Updating deployment state...
66
Deployment complete!
7+
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
78

89
=== Dry running pipeline, should have validate_only set to true
910
>>> [PIPELINES] dry-run

0 commit comments

Comments
 (0)