Merge "Monitor all .ipynb for notebook preview"
[releng.git] / jjb / xci / osa-periodic-jobs.yml
1 - project:
2     name: 'opnfv-osa-periodic'
3
4     project: 'releng-xci'
5 #--------------------------------
6 # branches
7 #--------------------------------
8     stream:
9         - master:
10             branch: '{stream}'
11 #--------------------------------
12 # distros
13 #--------------------------------
14     distro:
15         - 'xenial':
16             disabled: false
17         - 'centos7':
18             disabled: true
19         - 'suse':
20             disabled: true
21 #--------------------------------
22 # type
23 #--------------------------------
24     type:
25         - virtual
26 #--------------------------------
27 # phases
28 #--------------------------------
29     phase:
30         - 'deploy'
31         - 'healthcheck'
32 #--------------------------------
33 # jobs
34 #--------------------------------
35     jobs:
36         - 'osa-periodic-{distro}-{type}-{stream}'
37         - 'osa-periodic-{phase}-{type}-{stream}'
38 #--------------------------------
39 # job templates
40 #--------------------------------
41 - job-template:
42     name: 'osa-periodic-{distro}-{type}-{stream}'
43
44     project-type: multijob
45
46     disabled: '{obj:disabled}'
47
48     concurrent: false
49
50     properties:
51         - logrotate-default
52         - build-blocker:
53             use-build-blocker: true
54             blocking-jobs:
55                 - 'xci-verify-.*'
56                 - 'bifrost-verify-.*'
57                 - 'bifrost-periodic-.*'
58                 - 'osa-verify-.*'
59                 - 'osa-periodic-.*'
60             block-level: 'NODE'
61
62     wrappers:
63         - ssh-agent-wrapper
64         - build-timeout:
65             timeout: 240
66         - fix-workspace-permissions
67
68     scm:
69         - git-scm-osa
70
71     triggers:
72         - pollscm:
73             cron: "@midnight"
74             ignore-post-commit-hooks: True
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79             branch: '{branch}'
80         - label:
81             name: SLAVE_LABEL
82             default: 'xci-virtual-{distro}'
83
84     builders:
85         - description-setter:
86             description: "Built on $NODE_NAME"
87         - multijob:
88             name: deploy
89             condition: SUCCESSFUL
90             projects:
91                 - name: 'osa-periodic-deploy-{type}-{stream}'
92                   current-parameters: true
93                   predefined-parameters: |
94                     DISTRO={distro}
95                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
96                   git-revision: true
97                   node-parameters: true
98                   kill-phase-on: FAILURE
99                   abort-all-job: true
100         - multijob:
101             name: healthcheck
102             condition: SUCCESSFUL
103             projects:
104                 - name: 'osa-periodic-healthcheck-{type}-{stream}'
105                   current-parameters: true
106                   predefined-parameters: |
107                     DISTRO={distro}
108                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
109                     FUNCTEST_MODE=tier
110                     FUNCTEST_TIER=healthcheck
111                   node-parameters: true
112                   kill-phase-on: NEVER
113                   abort-all-job: false
114
115 - job-template:
116     name: 'osa-periodic-{phase}-{type}-{stream}'
117
118     disabled: false
119
120     concurrent: true
121
122     properties:
123         - logrotate-default
124         - build-blocker:
125             use-build-blocker: true
126             blocking-jobs:
127                 - 'xci-verify-deploy-.*'
128                 - 'xci-verify-healthcheck-.*'
129                 - 'bifrost-verify-.*'
130                 - 'bifrost-periodic-.*'
131                 - 'osa-verify-deploy-.*'
132                 - 'osa-verify-halthcheck-.*'
133                 - 'osa-periodic-deploy-.*'
134                 - 'osa-periodic-healthcheck-.*'
135             block-level: 'NODE'
136
137     parameters:
138         - project-parameter:
139             project: '{project}'
140             branch: '{branch}'
141         - label:
142             name: SLAVE_LABEL
143             default: 'xci-virtual-{distro}'
144         - string:
145             name: OPENSTACK_OSA_VERSION
146             default: 'master'
147         - string:
148             name: DISTRO
149             default: 'xenial'
150         - string:
151             name: DEPLOY_SCENARIO
152             default: 'os-nosdn-nofeature-noha'
153         - string:
154             name: XCI_FLAVOR
155             default: 'mini'
156         - string:
157             name: XCI_LOOP
158             default: 'periodic'
159         - string:
160             name: OPNFV_RELENG_DEV_PATH
161             default: $WORKSPACE/releng-xci
162         - string:
163             name: FUNCTEST_MODE
164             default: 'tier'
165         - string:
166             name: FUNCTEST_SUITE_NAME
167             default: 'healthcheck'
168         - string:
169             name: FORCE_MASTER
170             default: 'true'
171         - string:
172             name: GIT_BASE
173             default: https://gerrit.opnfv.org/gerrit/$PROJECT
174
175     scm:
176         - git-scm-osa
177
178     wrappers:
179         - ssh-agent-wrapper
180         - build-timeout:
181             timeout: 240
182         - fix-workspace-permissions
183
184     builders:
185         - description-setter:
186             description: "Built on $NODE_NAME"
187         - 'osa-periodic-{phase}-macro'
188
189 #--------------------------------
190 # builder macros
191 #--------------------------------
192 - builder:
193     name: 'osa-periodic-deploy-macro'
194     builders:
195         - shell: |
196             #!/bin/bash
197
198             # here we will
199             # - clone releng-xci repo as the jobs are running against openstack gerrit
200             #   and we need to clone releng-xci ourselves to $OPNFV_RELENG_DEV_PATH
201             # - run sources-branch-updater.sh from osa to update/pin the role versions
202             #   at the time this job gets triggered against osa master in case if the
203             #   deployment succeeds and we decide to bump version used by xci
204             # - copy generated role versions into $OPNFV_RELENG_DEV_PATH/xci/file
205             # - start the deployment by executing xci-deploy.sh as usual
206             #
207             # we might also need to pin versions of openstack services as well.
208
209             echo "Hello World!"
210
211 - builder:
212     name: 'osa-periodic-healthcheck-macro'
213     builders:
214         - shell: |
215             #!/bin/bash
216
217             echo "Hello World!"
218 #--------------------------------
219 # scm macro
220 #--------------------------------
221 - scm:
222     name: git-scm-osa
223     scm:
224         - git:
225             url: https://review.openstack.org/p/openstack/openstack-ansible.git
226             branches:
227                 - master
228             timeout: 15