Skip to content

Commit 41172dd

Browse files
committed
Updated pipeline from templates
1 parent e8c1c68 commit 41172dd

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

ci/pipeline.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ meta:
1515
name: (( param "Please name your pipeline" ))
1616
release: (( grab meta.name ))
1717
target: (( param "Please identify the name of the target Concourse CI" ))
18-
pipeline: (( grab meta.name ))
18+
url: (( param "Please specify the full url of the target Concourse CI" ))
19+
pipeline: (( concat meta.name "-boshrelease" ))
1920

2021
aws:
21-
bucket: (( concat meta.name "-pipeline" ))
22+
bucket: (( concat meta.pipeline "-pipeline" ))
2223
access_key: (( param "Please set your AWS Access Key ID for your pipeline S3 Bucket" ))
2324
secret_key: (( param "Please set your AWS Secret Key ID for your pipeline S3 Bucket" ))
2425

@@ -38,13 +39,16 @@ meta:
3839

3940
slack:
4041
webhook: (( param "Please specify your Slack Incoming Webhook Integration URL" ))
41-
notification: '(( concat ":sadpanda: " meta.name " build failed!<br>URL-GOES-HERE" ))'
42+
fail_moji: ":airplane_arriving:"
43+
upset_moji: ":sad_panda:"
44+
build_failure: '(( concat "$BUILD_PIPELINE_NAME: " meta.slack.fail_moji " <" meta.url "/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME| Failed to ship a new bosh release. " meta.slack.upset_moji ">" ))'
45+
test_failure: '(( concat "$BUILD_PIPELINE_NAME: " meta.slack.fail_moji " <" meta.url "/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME| Tests failed! " meta.slack.upset_moji ">" ))'
4246
channel: (( param "Please specify the channel (#name) or user (@user) to send messages to" ))
4347
username: concourse
4448
icon: http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png
4549

4650
groups:
47-
- name: (( grab meta.name ))
51+
- name: (( grab meta.pipeline ))
4852
jobs:
4953
- testflight
5054
- rc
@@ -74,13 +78,20 @@ jobs:
7478
BOSH_LITE_USERNAME: (( grab meta.bosh-lite.username ))
7579
BOSH_LITE_PASSWORD: (( grab meta.bosh-lite.password ))
7680
BOSH_LITE_DEPLOYMENT: (( grab meta.bosh-lite.deployment ))
81+
on_failure:
82+
put: notify
83+
params:
84+
channel: (( grab meta.slack.channel ))
85+
username: (( grab meta.slack.username ))
86+
icon_url: (( grab meta.slack.icon ))
87+
text: (( grab meta.slack.test_failure ))
7788

7889
- name: rc
7990
public: true
8091
plan:
8192
- aggregate:
8293
- { get: git, trigger: true, passed: [testflight] }
83-
- { get: version, trigger: false, params: {pre: rc} }
94+
- { get: version, trigger: true, params: {pre: rc} }
8495
- put: version
8596
params: {file: version/number}
8697

@@ -127,18 +138,25 @@ jobs:
127138
BOSH_LITE_TARGET: (( grab meta.bosh-lite.target ))
128139
BOSH_LITE_USERNAME: (( grab meta.bosh-lite.username ))
129140
BOSH_LITE_PASSWORD: (( grab meta.bosh-lite.password ))
130-
BOSH_LITE_DEPLOYMENT: (( concat "ci-" meta.name ))
141+
BOSH_LITE_DEPLOYMENT: (( grab meta.bosh-lite.deployment ))
131142

132143
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
133144
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))
145+
on_failure:
146+
put: notify
147+
params:
148+
channel: (( grab meta.slack.channel ))
149+
username: (( grab meta.slack.username ))
150+
icon_url: (( grab meta.slack.icon ))
151+
text: (( grab meta.slack.build_failure ))
134152

135153
- put: git
136154
params:
137155
rebase: true
138156
repository: pushme/git
139157
- put: s3
140158
params:
141-
from: gh/artifacts/.*-(.*).tgz
159+
file: (( concat "gh/artifacts/" meta.name "-*.tgz" ))
142160
- put: github
143161
params:
144162
name: gh/name

0 commit comments

Comments
 (0)