Skip to content

Commit f8a8af2

Browse files
[YOLO] fix pipeline inputs from target branch to source branch (#1480)
1 parent 0f7bc36 commit f8a8af2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.harness/reusable_build_images.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ pipeline:
88
ci:
99
codebase:
1010
connectorRef: account.svc_harness_git1
11-
repoName: <+pipeline.variables.target_repo>
11+
repoName: <+pipeline.variables.repo>
1212
build:
1313
type: branch
1414
spec:
15-
branch: <+pipeline.variables.target_branch>
15+
branch: <+pipeline.variables.source_branch>
1616
stages:
1717
- stage:
1818
name: Detect changes and output images build matrix
19-
identifier: Detect_changes_and_output_images_build_matrix
19+
identifier: get_changes_and_output_images_build_matrix
2020
description: ""
2121
type: CI
2222
spec:
@@ -135,7 +135,7 @@ pipeline:
135135
condition: <+pipeline.variables.envs_folders>!=""
136136
strategy:
137137
matrix:
138-
image: <+json.list("images", <+pipeline.stages.Detect_changes_and_output_images_build_matrix.spec.execution.steps.Build_params_matrix.output.outputVariables.matrix_json>)>
138+
image: <+json.list("images", <+pipeline.stages.get_changes_and_output_images_build_matrix.spec.execution.steps.Build_params_matrix.output.outputVariables.matrix_json>)>
139139
nodeName: <+matrix.image.repository>:<+matrix.image.tag>
140140
description: |-
141141
This pipeline can be used in other repositories to:
@@ -146,14 +146,14 @@ pipeline:
146146
Branch
147147
Comma separated list of paths to envs to build
148148
variables:
149-
- name: target_repo
149+
- name: repo
150150
type: String
151151
description: "Target repo: e.g. datarobot-user-models"
152152
required: false
153153
value: <+input>
154-
- name: target_branch
154+
- name: source_branch
155155
type: String
156-
description: E.g. master
156+
description: E.g. branch with the changed code
157157
required: false
158158
value: <+input>
159159
- name: envs_folders

.harness/test_functional_by_framework_multisteps.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ pipeline:
3939
inputs:
4040
identifier: WIP_build_images
4141
variables:
42-
- name: target_repo
42+
- name: repo
4343
type: String
4444
value: <+pipeline.variables.target_repo>
45-
- name: target_branch
45+
- name: source_branch
4646
type: String
47-
value: <+pipeline.variables.target_branch>
47+
value: <+pipeline.variables.source_branch>
4848
- name: envs_folders
4949
type: String
5050
value: <+pipeline.stages.Reconcile_envVersionIds_requirements.spec.execution.steps.find_changed.output.outputVariables.CHANGED_DIRS>
@@ -72,7 +72,7 @@ pipeline:
7272
build:
7373
type: branch
7474
spec:
75-
branch: <+pipeline.variables.target_branch>
75+
branch: <+pipeline.variables.source_branch>
7676
description: Explicitly clone repo to pull a commit created during reconciliation
7777
- step:
7878
type: Run
@@ -122,7 +122,7 @@ pipeline:
122122
build:
123123
type: branch
124124
spec:
125-
branch: <+pipeline.variables.target_branch>
125+
branch: <+pipeline.variables.source_branch>
126126
description: Explicitly clone repo to pull a commit created during reconciliation
127127
- step:
128128
type: Run

0 commit comments

Comments
 (0)