Skip to content

Commit 2d58032

Browse files
committed
Updating concourse vars
1 parent 36d9141 commit 2d58032

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

ci/pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- task: build-project
3838
timeout: 1h30m
3939
file: git-repo/ci/tasks/build-project.yml
40+
vars:
41+
branch: ((branch))
4042
- put: artifactory-repo
4143
params: &artifactory-params
4244
signing_key: ((signing-key))
@@ -65,6 +67,8 @@ jobs:
6567
action: claim
6668
- task: acceptance-tests
6769
file: git-repo/ci/tasks/acceptance-tests.yml
70+
vars:
71+
branch: ((branch))
6872
on_success:
6973
in_parallel:
7074
- *slack-success-notification
@@ -85,6 +89,7 @@ jobs:
8589
file: git-repo/ci/tasks/stage.yml
8690
vars:
8791
release-type: M
92+
branch: ((branch))
8893
- put: artifactory-repo
8994
params:
9095
<<: *artifactory-params
@@ -102,6 +107,7 @@ jobs:
102107
file: git-repo/ci/tasks/stage.yml
103108
vars:
104109
release-type: RC
110+
branch: ((branch))
105111
- put: artifactory-repo
106112
params:
107113
<<: *artifactory-params
@@ -119,6 +125,7 @@ jobs:
119125
file: git-repo/ci/tasks/stage.yml
120126
vars:
121127
release-type: RELEASE
128+
branch: ((branch))
122129
- put: artifactory-repo
123130
params:
124131
<<: *artifactory-params
@@ -139,6 +146,7 @@ jobs:
139146
file: git-repo/ci/tasks/promote.yml
140147
vars:
141148
release-type: M
149+
branch: ((branch))
142150

143151
- name: promote-rc
144152
serial: true
@@ -153,6 +161,7 @@ jobs:
153161
file: git-repo/ci/tasks/promote.yml
154162
vars:
155163
release-type: RC
164+
branch: ((branch))
156165

157166
- name: promote-release
158167
serial: true
@@ -167,6 +176,7 @@ jobs:
167176
file: git-repo/ci/tasks/promote.yml
168177
vars:
169178
release-type: RELEASE
179+
branch: ((branch))
170180

171181
- name: sync-to-maven-central
172182
serial: true
@@ -179,6 +189,8 @@ jobs:
179189
save_build_info: true
180190
- task: sync-to-maven-central
181191
file: git-repo/ci/tasks/sync-to-maven-central.yml
192+
vars:
193+
branch: ((branch))
182194

183195
resource_types:
184196
- name: artifactory-resource

ci/pr-pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
file: pull-request/ci/tasks/build-project.yml
2727
input_mapping:
2828
git-repo: pull-request
29-
29+
vars:
30+
branch: ((branch))
3031
- name: run-acceptance-tests
3132
serial: true
3233
plan:
@@ -40,6 +41,8 @@ jobs:
4041
action: claim
4142
- task: acceptance-tests
4243
file: pull-request/ci/tasks/acceptance-tests.yml
44+
vars:
45+
branch: ((branch))
4346
input_mapping:
4447
git-repo: pull-request
4548
on_success:

scripts/set-pipelines.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ readonly VERSION=1.4.x
77
readonly BRANCH=main
88

99
set_pipeline() {
10-
local pipeline_name pipeline_definition branch ci_image_tag
10+
local pipeline_name pipeline_definition branch
1111
pipeline_name="${1:?pipeline name must be provided}"
1212
pipeline_definition="${2:?pipeline definition file must be provided}"
1313
branch="${3:?branch must be provided}"
14-
ci_image_tag="${4:-$branch}"
1514

1615
echo "Setting $pipeline_name pipeline..."
1716
fly --target "$FLY_TARGET" set-pipeline \

0 commit comments

Comments
 (0)