Merge "keep weekly-trigger-disabled and enable compass-dovetail weekly trigger"
[releng.git] / jjb / compass4nfv / compass-dovetail-jobs.yml
1 - project:
2
3     name: 'compass-dovetail-jobs'
4     installer: 'compass'
5     project: 'compass4nfv'
6 #----------------------------------
7 # BRANCH ANCHORS
8 #----------------------------------
9     colorado: &colorado
10         stream: colorado
11         branch: 'stable/{stream}'
12         gs-pathname: '/{stream}'
13         disabled: false
14         dovetail-branch: master
15 #------------------------------------
16 # POD, INSTALLER, AND BRANCH MAPPING
17 #------------------------------------
18 #        CI PODs
19 #------------------------------------
20     pod:
21         - baremetal:
22             slave-label: compass-baremetal
23             os-version: 'trusty'
24             <<: *colorado
25 #-----------------------------------
26 # scenarios
27 #-----------------------------------
28     scenario:
29         - 'os-nosdn-nofeature-ha':
30             disabled: false
31             auto-trigger-name: 'compass-{scenario}-{pod}-weekly-{stream}-trigger'
32
33     jobs:
34         - 'compass-{scenario}-{pod}-weekly-{stream}'
35         - 'compass-deploy-{pod}-weekly-{stream}'
36
37 ########################
38 # job templates
39 ########################
40 - job-template:
41     name: 'compass-{scenario}-{pod}-weekly-{stream}'
42
43     disabled: '{obj:disabled}'
44
45     concurrent: false
46
47     properties:
48         - build-blocker:
49             use-build-blocker: true
50             blocking-jobs:
51                 - 'compass-os-.*?-{pod}-daily-.*?'
52                 - 'compass-os-.*?-{pod}-weekly-.*?'
53             block-level: 'NODE'
54
55     wrappers:
56         - build-name:
57             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
58
59     triggers:
60         - '{auto-trigger-name}'
61
62     parameters:
63         - project-parameter:
64             project: '{project}'
65             branch: '{branch}'
66         - compass-ci-parameter:
67             installer: '{installer}'
68             gs-pathname: '{gs-pathname}'
69         - string:
70             name: DEPLOY_SCENARIO
71             default: '{scenario}'
72         - '{slave-label}-defaults'
73         - '{installer}-defaults'
74
75     triggers:
76         - '{auto-trigger-name}'
77
78     builders:
79         - description-setter:
80             description: "POD: $NODE_NAME"
81         - trigger-builds:
82             - project: 'compass-deploy-{pod}-weekly-{stream}'
83               current-parameters: false
84               predefined-parameters: |
85                 DEPLOY_SCENARIO={scenario}
86                 COMPASS_OS_VERSION={os-version}
87               same-node: true
88               block: true
89         - trigger-builds:
90             - project: 'dovetail-compass-{pod}-compliance_set-weekly-{stream}'
91               current-parameters: false
92               predefined-parameters:
93                 DEPLOY_SCENARIO={scenario}
94               block: true
95               same-node: true
96               block-thresholds:
97                 build-step-failure-threshold: 'never'
98                 failure-threshold: 'never'
99                 unstable-threshold: 'FAILURE'
100         - trigger-builds:
101             - project: 'dovetail-compass-{pod}-debug-weekly-{stream}'
102               current-parameters: false
103               predefined-parameters:
104                 DEPLOY_SCENARIO={scenario}
105               block: true
106               same-node: true
107               block-thresholds:
108                 build-step-failure-threshold: 'never'
109                 failure-threshold: 'never'
110                 unstable-threshold: 'FAILURE'
111         - trigger-builds:
112             - project: 'dovetail-compass-{pod}-proposed_tests-weekly-{stream}'
113               current-parameters: false
114               predefined-parameters:
115                 DEPLOY_SCENARIO={scenario}
116               block: true
117               same-node: true
118               block-thresholds:
119                 build-step-failure-threshold: 'never'
120                 failure-threshold: 'never'
121                 unstable-threshold: 'FAILURE'
122
123 - job-template:
124     name: 'compass-deploy-{pod}-weekly-{stream}'
125
126     disabled: false
127
128     concurrent: true
129
130     properties:
131         - logrotate-default
132         - throttle:
133             enabled: true
134             max-total: 4
135             max-per-node: 1
136             option: 'project'
137         - build-blocker:
138             use-build-blocker: true
139             blocking-jobs:
140                 - 'compass-deploy-{pod}-daily-.*?'
141                 - 'compass-deploy-{pod}-weekly-.*'
142                 - 'compass-verify-deploy-.*?'
143             block-level: 'NODE'
144
145     wrappers:
146         - build-name:
147             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
148         - timeout:
149             timeout: 120
150             abort: true
151
152     parameters:
153         - project-parameter:
154             project: '{project}'
155             branch: '{branch}'
156         - compass-ci-parameter:
157             installer: '{installer}'
158             gs-pathname: '{gs-pathname}'
159         - '{slave-label}-defaults'
160         - '{installer}-defaults'
161
162     scm:
163         - git-scm
164
165     wrappers:
166         - build-name:
167             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
168
169
170     builders:
171         - description-setter:
172             description: "POD: $NODE_NAME"
173         - shell:
174             !include-raw-escape: ./compass-download-artifact.sh
175         - shell:
176             !include-raw-escape: ./compass-deploy.sh
177
178     publishers:
179         - archive:
180             artifacts: 'ansible.log'
181             allow-empty: 'true'
182             fingerprint: true
183
184 ########################
185 # parameter macros
186 ########################
187 - parameter:
188     name: compass-dovetail-parameter
189     parameters:
190         - string:
191             name: BUILD_DIRECTORY
192             default: $WORKSPACE/build_output
193             description: "Directory where the build artifact will be located upon the completion of the build."
194         - string:
195             name: GS_URL
196             default: '$GS_BASE{gs-pathname}'
197             description: "URL to Google Storage."
198         - choice:
199             name: COMPASS_OPENSTACK_VERSION
200             choices:
201                 - 'mitaka'
202
203 ########################
204 # trigger macros
205 ########################
206 - trigger:
207     name: 'compass-os-nosdn-nofeature-ha-baremetal-weekly-colorado-trigger'
208     triggers:
209         - timed: 'H H * * 0'
210
211 - trigger:
212     name: 'dovetail-weekly-trigger'
213     triggers:
214         - timed: 'H H * * 0'