Skip to content

Commit c7dd815

Browse files
committed
Re-generate pipeline from latest templates
1 parent 69e56dc commit c7dd815

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

ci/pipeline.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ meta:
3737
secret_key: (( param "Please set your AWS Secret Key ID" ))
3838

3939
github:
40-
uri: (( concat "[email protected]:" meta.github.owner "/" meta.github.repo ))
41-
owner: (( param "Please specify the name of the user / organization that owns the Github repository" ))
42-
repo: (( param "Please specify the name of the Github repository" ))
43-
branch: master
44-
private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
45-
access_token: (( param "Please generate a Personal Access Token and specify it here" ))
40+
uri: (( concat "[email protected]:" meta.github.owner "/" meta.github.repo ))
41+
owner: (( param "Please specify the name of the user / organization that owns the Github repository" ))
42+
repo: (( param "Please specify the name of the Github repository" ))
43+
branch: master
44+
pr_base_branch: (( grab meta.github.branch ))
45+
release_branch: (( grab meta.github.branch ))
46+
private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
47+
access_token: (( param "Please generate a Personal Access Token and specify it here" ))
4648

4749
dockerhub:
4850
username: (( param "Please specify the username for your Dockerhub account" ))
@@ -58,8 +60,8 @@ meta:
5860
fail_moji: ":airplane_arriving:"
5961
upset_moji: ":sadpanda:"
6062
pipeline_url: (( concat meta.url "/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}" ))
61-
fail_link: (( concat "<" meta.slack.pipeline_url "/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}| Concourse Failure! " meta.slack.upset_moji ">" ))
62-
fail_text: '(( concat meta.slack.fail_link " " meta.pipeline ": `${BUILD_JOB_NAME}` job failed" ))'
63+
fail_link: (( concat "<" meta.slack.pipeline_url "/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}| Let's go fix it!>" ))
64+
fail_text: '(( concat meta.pipeline ": `${BUILD_JOB_NAME}` job has failed " meta.slack.upset_moji " " meta.slack.fail_link " :hammer_and_wrench:" ))'
6365

6466
groups:
6567
- name: (( grab meta.name ))
@@ -100,6 +102,7 @@ jobs:
100102

101103
on_failure:
102104
put: notify
105+
no_get: true
103106
params:
104107
channel: (( grab meta.slack.channel ))
105108
username: (( grab meta.slack.username ))
@@ -168,6 +171,7 @@ jobs:
168171

169172
on_success:
170173
put: notify
174+
no_get: true
171175
params:
172176
channel: (( grab meta.slack.channel ))
173177
username: (( grab meta.slack.username ))
@@ -211,6 +215,7 @@ jobs:
211215
params: { file: version/number }
212216
on_failure:
213217
put: notify
218+
no_get: true
214219
params:
215220
channel: (( grab meta.slack.channel ))
216221
username: (( grab meta.slack.username ))
@@ -225,6 +230,7 @@ jobs:
225230
- { put: version, params: { file: version/number } }
226231
on_failure:
227232
put: notify
233+
no_get: true
228234
params:
229235
channel: (( grab meta.slack.channel ))
230236
username: (( grab meta.slack.username ))
@@ -239,6 +245,7 @@ jobs:
239245
- { put: version, params: { file: version/number } }
240246
on_failure:
241247
put: notify
248+
no_get: true
242249
params:
243250
channel: (( grab meta.slack.channel ))
244251
username: (( grab meta.slack.username ))
@@ -270,13 +277,14 @@ jobs:
270277
path: ./git/ci/scripts/release
271278
args: []
272279
params:
273-
REPO_ROOT: git
274-
RELEASE_ROOT: gh
275-
RELEASE_NAME: (( grab meta.release ))
276-
REPO_OUT: pushme/git
277-
VERSION_FROM: version/number
278-
GIT_EMAIL: (( grab meta.git.email ))
279-
GIT_NAME: (( grab meta.git.name ))
280+
REPO_ROOT: git
281+
RELEASE_ROOT: gh
282+
RELEASE_NAME: (( grab meta.release ))
283+
REPO_OUT: pushme/git
284+
VERSION_FROM: version/number
285+
GIT_EMAIL: (( grab meta.git.email ))
286+
GIT_NAME: (( grab meta.git.name ))
287+
RELEASE_BRANCH: (( grab meta.github.release_branch ))
280288

281289
- load_var: version
282290
file: version/number
@@ -314,6 +322,7 @@ jobs:
314322
body: gh/notes.md
315323
on_failure:
316324
put: notify
325+
no_get: true
317326
params:
318327
channel: (( grab meta.slack.channel ))
319328
username: (( grab meta.slack.username ))
@@ -355,7 +364,7 @@ resources:
355364
source:
356365
access_token: (( grab meta.github.access_token ))
357366
repository: (( concat meta.github.owner "/" meta.github.repo ))
358-
base_branch: (( grab meta.github.branch ))
367+
base_branch: (( grab meta.github.pr_base_branch ))
359368

360369
- name: docker-image-build-task
361370
type: registry-image

ci/repipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ echo >&2 "Working in $(pwd)"
9595
need_command spruce
9696

9797
# Allow for target-specific settings
98-
settings_file="$(ls -1 settings.yml ${CONCOURSE_TARGET:+"settings-${CONCOURSE_TARGET}.yml"} 2>/dev/null | tail -n1)"
98+
settings_file="$(ls -1 settings.yml ${CONCOURSE_TARGET:+"settings-${CONCOURSE_TARGET}.yml"} 2>/dev/null | head -n1)"
9999
if [[ -z "$settings_file" ]]
100100
then
101101
echo >&2 "Missing local settings in ci/settings.yml${CONCOURSE_TARGET:+" or ci/settings-${CONCOURSE_TARGET}.yml"}!"

ci/scripts/release

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111

1212
set -eu
1313

14+
: ${REPO_ROOT:?required}
15+
: ${RELEASE_ROOT:?required}
16+
: ${RELEASE_NAME:?required}
1417
: ${GIT_EMAIL:?required}
1518
: ${GIT_NAME:?required}
19+
RELEASE_BRANCH=${RELEASE_BRANCH:-"master"}
20+
: ${REPO_OUT:?required}
1621

1722
if [[ ! -f ${REPO_ROOT}/ci/release_notes.md ]]; then
1823
echo >&2 "ci/release_notes.md not found. Did you forget to write them?"
@@ -46,7 +51,7 @@ if [[ -z $(git config --global user.name) ]]; then
4651
fi
4752

4853
(cd ${REPO_ROOT}
49-
git merge --no-edit master
54+
git merge --no-edit "${RELEASE_BRANCH}"
5055
git add -A
5156
git status
5257
git commit -m "release v${VERSION} [skip ci]")

ci/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ jobs:
256256
257257
on_failure:
258258
put: notify
259+
no_get: true
259260
params:
260261
channel: (( grab meta.slack.channel ))
261262
username: (( grab meta.slack.username ))

0 commit comments

Comments
 (0)