-
Notifications
You must be signed in to change notification settings - Fork 6
/
sync-hotfix-branches.yml
111 lines (100 loc) · 3.18 KB
/
sync-hotfix-branches.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
111
---
display:
background_image: ((background-image-url))
resource_types:
- name: slack-notification
type: registry-image
source:
repository: elpaasoci/slack-notification-resource
tag: v1.7.0-orange
- name: git-branch-heads
type: registry-image
source:
repository: elpaasoci/git-branch-heads-resource
tag: 2.0.1
resources:
- name: failure-alert
icon: slack
type: slack-notification
source:
url: ((slack-webhook))
- name: hotfixes-merged
type: git
source:
uri: ((paas-templates-uri))
branch: ((paas-templates-merged-branch))
skip_ssl_verification: true
- name: paas-templates-reference
icon: shield-home
type: git
source:
uri: ((paas-templates-uri))
branch: ((paas-templates-reference-branch))
skip_ssl_verification: true
- name: paas-templates-hotfixes
type: git-branch-heads
source:
uri: ((paas-templates-uri))
branches: [((paas-templates-reference-branch)), hotfix-*,hf-*,HF-*]
skip_ssl_verification: true
- name: cf-ops-automation
icon: rocket
type: git
source:
uri: ((cf-ops-automation-uri))
branch: ((cf-ops-automation-branch))
tag_filter: ((cf-ops-automation-tag-filter))
skip_ssl_verification: true
jobs:
- name: update-merged-wip-features
serial_groups: [git]
plan:
- in_parallel:
- get: hotfixes-merged
params: { submodules: none}
- get: paas-templates-hotfixes
params: { submodules: none}
trigger: true
version: every
- put: hotfixes-merged
get_params: {submodules: none}
params:
repository: paas-templates-hotfixes
rebase: true
on_failure:
put: failure-alert
params:
channel: ((slack-channel))
text: Failed to run [[$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME ($BUILD_NAME)]($ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME)].
icon_url: http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png
username: Concourse
- name: reset-merged-hotfixes
serial_groups: [git]
on_failure:
put: failure-alert
params:
channel: ((slack-channel))
text: Failed to run [[$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME ($BUILD_NAME)]($ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME)].
icon_url: http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png
username: Concourse
plan:
- in_parallel:
- get: hotfixes-merged
params: { submodules: none}
- get: paas-templates-reference
params: { submodules: none}
- get: cf-ops-automation
params: { submodules: none}
- task: reset-wip
file: cf-ops-automation/concourse/tasks/git_reset_wip.yml
input_mapping: {reference-resource: paas-templates-reference}
output_mapping: {updated-git-resource: paas-templates-hotfixes-reseted}
params:
GIT_BRANCH_FILTER: hotfix-* hf-* HF-*
SKIP_SSL_VERIFICATION: true
GIT_CHECKOUT_BRANCH: ((paas-templates-reference-branch))
- put: hotfixes-merged
get_params: {submodules: none}
params:
repository: paas-templates-hotfixes-reseted
force: true