use py34 for tox
[releng.git] / jjb / doctor / doctor.yaml
1 ---
2 - project:
3     name: doctor
4
5     project: '{name}'
6
7     stream:
8       - master:
9           branch: '{stream}'
10           gs-pathname: ''
11           disabled: false
12       - fraser: &fraser
13           branch: 'stable/{stream}'
14           gs-pathname: '/{stream}'
15           disabled: false
16
17     installer:
18       - 'apex'
19       - 'fuel'
20       - 'daisy'
21
22     arch:
23       - 'x86_64'
24       - 'aarch64'
25
26     inspector:
27       - 'sample'
28       - 'congress'
29
30     exclude:
31       - installer: 'apex'
32         arch: 'aarch64'
33       - installer: 'daisy'
34         arch: 'aarch64'
35       # disabling the following tests due to limitation of PoD owners
36       # these would beenabled again once the PoDs are ready
37       - installer: 'fuel'
38         arch: 'x86_64'
39
40     jobs:
41       - 'doctor-verify-{inspector}-{stream}'
42       - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
43
44 - job-template:
45     name: 'doctor-verify-{inspector}-{stream}'
46     disabled: '{obj:disabled}'
47     project-type: 'multijob'
48     parameters:
49       - project-parameter:
50           project: '{project}'
51           branch: '{branch}'
52       - 'doctor-slave-parameter'
53     scm:
54       - git-scm-gerrit
55     triggers:
56       - 'doctor-verify':
57           project: '{project}'
58           branch: '{branch}'
59           files: 'doctor_tests/**'
60
61     builders:
62       - shell: |
63          #!/bin/bash
64          # we do nothing here as the main stuff will be done
65          # in phase jobs
66          echo "Triggering phase jobs!"
67       - multijob:
68           name: 'doctor-verify'
69           execution-type: PARALLEL
70           projects:
71             - name: 'doctor-verify-apex-{inspector}-x86_64-{stream}'
72               predefined-parameters: |
73                 PROJECT=$PROJECT
74                 GERRIT_BRANCH=$GERRIT_BRANCH
75                 GERRIT_REFSPEC=$GERRIT_REFSPEC
76                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
77                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
78               kill-phase-on: FAILURE
79               git-revision: true
80             - name: 'doctor-verify-fuel-{inspector}-x86_64-{stream}'
81               predefined-parameters: |
82                 PROJECT=$PROJECT
83                 GERRIT_BRANCH=$GERRIT_BRANCH
84                 GERRIT_REFSPEC=$GERRIT_REFSPEC
85                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
86                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
87               kill-phase-on: FAILURE
88               git-revision: true
89             - name: 'doctor-verify-fuel-{inspector}-aarch64-{stream}'
90               predefined-parameters: |
91                 GERRIT_BRANCH=$GERRIT_BRANCH
92                 GERRIT_REFSPEC=$GERRIT_REFSPEC
93                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
94                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
95               kill-phase-on: FAILURE
96               git-revision: true
97             - name: 'doctor-verify-daisy-{inspector}-x86_64-{stream}'
98               predefined-parameters: |
99                 PROJECT=$PROJECT
100                 GERRIT_BRANCH=$GERRIT_BRANCH
101                 GERRIT_REFSPEC=$GERRIT_REFSPEC
102                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
103                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
104               kill-phase-on: FAILURE
105               git-revision: true
106
107 - job-template:
108     name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
109     disabled: '{obj:disabled}'
110     node: 'doctor-{installer}-{arch}'
111     wrappers:
112       - ssh-agent-wrapper
113       - build-timeout:
114           timeout: 30
115     parameters:
116       - project-parameter:
117           project: '{project}'
118           branch: '{branch}'
119       - '{installer}-defaults'
120       - 'doctor-slave-parameter'
121       - 'doctor-parameter':
122           inspector: '{inspector}'
123     scm:
124       - git-scm-gerrit
125     builders:
126       - 'doctor-verify-installer-inspector-builders-macro'
127     publishers:
128       - 'doctor-verify-publishers-macro'
129
130
131 # -------------------------------
132 # parameter macros
133 # -------------------------------
134 - parameter:
135     name: 'doctor-parameter'
136     parameters:
137       - string:
138           name: INSPECTOR_TYPE
139           default: '{inspector}'
140           description: 'inspector component'
141
142 # -------------------------------
143 # builder macros
144 # -------------------------------
145
146 - builder:
147     name: 'doctor-verify-installer-inspector-builders-macro'
148     builders:
149       # yamllint disable rule:indentation
150       - 'clean-workspace-log'
151       - shell:
152           !include-raw:
153               - ./doctor-env-presetup.sh
154               - ../../utils/fetch_os_creds.sh
155       - shell: |
156           source $HOME/opnfv-openrc.sh
157           if [ -f $HOME/os_cacert ]; then
158               export OS_CACERT=$HOME/os_cacert
159           fi
160
161           tox -e py34
162
163 # -------------------------------
164 # publisher macros
165 # -------------------------------
166 - publisher:
167     name: 'doctor-verify-publishers-macro'
168     publishers:
169       - archive:
170           artifacts: 'doctor_tests/*.log'
171       - email-jenkins-admins-on-failure
172
173
174 #####################################
175 # trigger macros
176 #####################################
177 - trigger:
178     name: 'doctor-verify'
179     triggers:
180       - gerrit:
181           server-name: 'gerrit.opnfv.org'
182           trigger-on:
183             - patchset-created-event:
184                 exclude-drafts: 'false'
185                 exclude-trivial-rebase: 'false'
186                 exclude-no-code-change: 'false'
187             - draft-published-event
188             - comment-added-contains-event:
189                 comment-contains-value: 'recheck'
190             - comment-added-contains-event:
191                 comment-contains-value: 'reverify'
192           projects:
193             - project-compare-type: 'ANT'
194               project-pattern: '{project}'
195               branches:
196                 - branch-compare-type: 'ANT'
197                   branch-pattern: '**/{branch}'
198               file-paths:
199                 - compare-type: ANT
200                   pattern: '{files}'
201           skip-vote:
202             successful: true
203             failed: true
204             unstable: true
205             notbuilt: true