forked from cloudfoundry/buildpacks-ci
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildpack-verification.yml
110 lines (109 loc) · 3.47 KB
/
buildpack-verification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
resource_types:
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
- name: cron
type: docker-image
source:
repository: cfbuildpacks/cron-resource
resources:
- name: verification-interval
type: cron
source:
expression: "0 6 * * *"
location: {{current-timezone}}
- name: buildpack-checksums
type: git
source:
uri: git@bitbucket.org:cloudfoundry-buildpacks/buildpack-checksums.git
private_key: {{buildpack-checksums-private-key}}
branch: master
- name: buildpacks-ci
type: git
source:
uri: {{buildpacks-ci-git-uri-public}}
branch: master
- name: verification-whitelist
type: git
source:
uri: https://github.com/cloudfoundry/public-buildpacks-ci-robots
paths: [ binary-verification-whitelist/* ]
- name: deploy-buildpack-verify
type: cf
source:
api: https://api.run.pivotal.io
username: {{pws-username}}
password: {{pws-password}}
organization: {{pws-org}}
space: {{pws-space}}
skip_cert_check: false
- name: failure-alert
type: slack-notification
source:
url: {{concourse-job-failure-notifications-slack-webhook}}
- name: hwc-buildpack
type: git
source:
uri: https://github.com/cloudfoundry/hwc-buildpack
branch: master
<% %w(go nodejs ruby python php staticfile binary dotnet-core).each do |language| %>
- name: <%= language %>-buildpack
type: git
source:
uri: https://github.com/<%= organization %>/<%= language %>-buildpack
branch: master
<% end %>
jobs:
- name: build-site
public: true
plan:
- aggregate:
- get: buildpack-checksums
trigger: true
- get: buildpacks-ci
- task: run-tests
file: buildpacks-ci/tasks/run-buildpack-checksums-specs/task.yml
params:
RUBYGEM_MIRROR: {{rubygem-mirror}}
- task: build-site
file: buildpacks-ci/tasks/build-buildpack-checksums-site/task.yml
params:
RUBYGEM_MIRROR: {{rubygem-mirror}}
- put: buildpack-checksums
params:
repository: buildpack-checksums-artifacts
rebase: true
- put: deploy-buildpack-verify
params:
path: buildpack-checksums-artifacts/final_site/
manifest: buildpack-checksums-artifacts/final_site/manifest.yml
- name: verify-buildpack-binaries
public: true
plan:
- do:
- aggregate:
- get: buildpacks-ci
- get: verification-whitelist
- get: verification-interval
trigger: true
- get: nodejs-buildpack
- get: ruby-buildpack
- get: go-buildpack
- get: python-buildpack
- get: staticfile-buildpack
- get: binary-buildpack
- get: php-buildpack
- get: dotnet-core-buildpack
- get: hwc-buildpack
- task: verify-buildpack-binaries
file: buildpacks-ci/tasks/verify-buildpack-binaries/task.yml
timeout: 1h30m
on_failure:
put: failure-alert
params:
text: "$BUILD_PIPELINE_NAME $BUILD_JOB_NAME job on Concourse failed! \n Check: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME"
channel: {{concourse-job-failure-notifications-slack-channel}}
username: concourse
icon_url: http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png