-
Notifications
You must be signed in to change notification settings - Fork 28
/
signals-aggregator.yml
100 lines (93 loc) · 2.32 KB
/
signals-aggregator.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
resource_types:
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
resources:
- name: slack-alert
type: slack-notification
source:
url: ((build-alert-slack-url))
- name: git-kubo-ci
type: git
source:
uri: git@github.com:cloudfoundry-incubator/kubo-ci
branch: master
private_key: ((git-ssh-key.private_key))
- name: gcs-shipables
type: gcs
source:
json_key: ((gcs-json-key))
bucket: kubo-pipeline-store
versioned_file: shipables/shipable_version
<% arr = %w(
azure_vanilla_conformance
gcp_old-release_upgrade
gcp_custom-cidrs_integration
gcp_pod-security-policy_integration
gcp_two-cas_no-test
gcp_vanilla_conformance
gcp_vanilla_integration
gcp_vanilla_istio
gcp_vanilla_turbulence
vsphere_vanilla_integration
vsphere_vanilla_conformance
vsphere_vanilla_security
vsphere_windows-workers_integration
vsphere-proxy_vanilla_integration
vsphere-proxy_vanilla_conformance
vsphere-proxy_vanilla_security
) %>
<% arr.each do |pipeline| %>
- name: gcs-<%= pipeline %>-shipables
type: gcs
source:
json_key: ((gcs-json-key))
bucket: kubo-pipeline-store
versioned_file: shipables/<%= pipeline %>-shipable
<% end %>
jobs:
- name: signal-aggregator
plan:
- in_parallel:
- get: git-kubo-ci
<% arr.each do |pipeline|%>
- get: gcs-<%= pipeline %>-shipables
trigger: true
version: every
<% end %>
- task: aggregate-test-signals
config:
platform: linux
image_resource:
type: docker-image
source:
repository: gcr.io/cf-pks-golf/pcfkubo/kubo-ci
tag: stable
params:
SLACK_MESSAGE_FILE: "slack/message"
SHIPABLE_VERSION_FILE: "shipable_version/version"
outputs:
- name: slack
- name: shipable_version
inputs:
- name: git-kubo-ci
<% arr.each do |pipeline| %>
- name: gcs-<%= pipeline %>-shipables
<% end %>
run:
path: git-kubo-ci/tasks/aggregate-test-signals/task.sh
on_success:
put: gcs-shipables
params:
file: shipable_version/version
ensure:
put: slack-alert
params:
attachments_file: slack-notification/attachments
text_file: "slack/message"