mirror of https://github.com/databricks/cli.git
Update target references to use `${bundle.target}` (#1935)
## Changes The built-in template contains a reference to `${bundle.environment}`. This property has been deprecated in favor of `${bundle.target}` a long time ago (#670), so we should no longer emit it. The environment field will continue to be usable until we cut a new major version in some far away future. ## Tests * Unit tests * The test `TestInterpolationWithTarget` still covers correct interpolation of `${bundle.environment}`
This commit is contained in:
parent
85c0d2d3ee
commit
fae1b6742d
|
@ -10,7 +10,7 @@ artifacts:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-132531-5opeqon1"
|
existing_cluster_id: "0717-132531-5opeqon1"
|
||||||
|
|
|
@ -4,7 +4,7 @@ bundle:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-132531-5opeqon1"
|
existing_cluster_id: "0717-132531-5opeqon1"
|
||||||
|
|
|
@ -14,7 +14,7 @@ artifacts:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-132531-5opeqon1"
|
existing_cluster_id: "0717-132531-5opeqon1"
|
||||||
|
|
|
@ -4,7 +4,7 @@ bundle:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
||||||
|
|
|
@ -7,7 +7,7 @@ workspace:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
||||||
|
|
|
@ -4,7 +4,7 @@ bundle:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
existing_cluster_id: "0717-aaaaa-bbbbbb"
|
||||||
|
|
|
@ -4,7 +4,7 @@ bundle:
|
||||||
resources:
|
resources:
|
||||||
jobs:
|
jobs:
|
||||||
test_job:
|
test_job:
|
||||||
name: "[${bundle.environment}] My Wheel Job"
|
name: "[${bundle.target}] My Wheel Job"
|
||||||
tasks:
|
tasks:
|
||||||
- task_key: TestTask
|
- task_key: TestTask
|
||||||
existing_cluster_id: "0717-132531-5opeqon1"
|
existing_cluster_id: "0717-132531-5opeqon1"
|
||||||
|
|
|
@ -9,7 +9,7 @@ resources:
|
||||||
{{- else}}
|
{{- else}}
|
||||||
catalog: {{default_catalog}}
|
catalog: {{default_catalog}}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
target: {{.project_name}}_${bundle.environment}
|
target: {{.project_name}}_${bundle.target}
|
||||||
libraries:
|
libraries:
|
||||||
- notebook:
|
- notebook:
|
||||||
path: ../src/dlt_pipeline.ipynb
|
path: ../src/dlt_pipeline.ipynb
|
||||||
|
|
Loading…
Reference in New Issue