undo publishing the ansible.log
[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 ########################
179 # parameter macros
180 ########################
181 - parameter:
182     name: compass-dovetail-parameter
183     parameters:
184         - string:
185             name: BUILD_DIRECTORY
186             default: $WORKSPACE/build_output
187             description: "Directory where the build artifact will be located upon the completion of the build."
188         - string:
189             name: GS_URL
190             default: '$GS_BASE{gs-pathname}'
191             description: "URL to Google Storage."
192         - choice:
193             name: COMPASS_OPENSTACK_VERSION
194             choices:
195                 - 'mitaka'
196
197 ########################
198 # trigger macros
199 ########################
200 - trigger:
201     name: 'compass-os-nosdn-nofeature-ha-baremetal-weekly-colorado-trigger'
202     triggers:
203         - timed: 'H H * * 0'
204
205 - trigger:
206     name: 'dovetail-weekly-trigger'
207     triggers:
208         - timed: 'H H * * 0'