remove fuel job in Doctor
[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-{stream}'
42       - 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
43
44 - job-template:
45     name: 'doctor-verify-{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-sample'
69           execution-type: PARALLEL
70           projects:
71             - name: 'doctor-verify-apex-sample-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-daisy-sample-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       - multijob:
90           name: 'doctor-verify-congress'
91           execution-type: PARALLEL
92           projects:
93             - name: 'doctor-verify-apex-congress-x86_64-{stream}'
94               predefined-parameters: |
95                 PROJECT=$PROJECT
96                 GERRIT_BRANCH=$GERRIT_BRANCH
97                 GERRIT_REFSPEC=$GERRIT_REFSPEC
98                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
99                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
100               kill-phase-on: FAILURE
101               git-revision: true
102             - name: 'doctor-verify-daisy-congress-x86_64-{stream}'
103               predefined-parameters: |
104                 PROJECT=$PROJECT
105                 GERRIT_BRANCH=$GERRIT_BRANCH
106                 GERRIT_REFSPEC=$GERRIT_REFSPEC
107                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
108                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
109               kill-phase-on: FAILURE
110               git-revision: true
111
112 - job-template:
113     name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
114     disabled: '{obj:disabled}'
115     node: 'doctor-{installer}-{arch}'
116     wrappers:
117       - ssh-agent-wrapper
118       - build-timeout:
119           timeout: 30
120     parameters:
121       - project-parameter:
122           project: '{project}'
123           branch: '{branch}'
124       - '{installer}-defaults'
125       - 'doctor-slave-parameter'
126       - 'doctor-parameter':
127           inspector: '{inspector}'
128     scm:
129       - git-scm-gerrit
130     builders:
131       - 'doctor-verify-installer-inspector-builders-macro'
132     publishers:
133       - 'doctor-verify-publishers-macro'
134
135
136 # -------------------------------
137 # parameter macros
138 # -------------------------------
139 - parameter:
140     name: 'doctor-parameter'
141     parameters:
142       - string:
143           name: INSPECTOR_TYPE
144           default: '{inspector}'
145           description: 'inspector component'
146
147 # -------------------------------
148 # builder macros
149 # -------------------------------
150
151 - builder:
152     name: 'doctor-verify-installer-inspector-builders-macro'
153     builders:
154       # yamllint disable rule:indentation
155       - shell:
156           !include-raw:
157               - ./doctor-env-presetup.sh
158               - ../../utils/fetch_os_creds.sh
159       - shell: |
160           # prepare the env for test
161           source $HOME/opnfv-openrc.sh
162           if [ -f $HOME/os_cacert ]; then
163               export OS_CACERT=$HOME/os_cacert
164           fi
165           source $HOME/opnfv-installer.sh
166
167           # run tox to trigger the test
168           # As Jenkins user, it has no permission to send ICMP package
169           sudo -E tox -e py34
170
171
172 # -------------------------------
173 # publisher macros
174 # -------------------------------
175 - publisher:
176     name: 'doctor-verify-publishers-macro'
177     publishers:
178       - archive:
179           artifacts: 'doctor_tests/*.log'
180       - email-jenkins-admins-on-failure
181       - workspace-cleanup
182
183 #####################################
184 # trigger macros
185 #####################################
186 - trigger:
187     name: 'doctor-verify'
188     triggers:
189       - gerrit:
190           server-name: 'gerrit.opnfv.org'
191           trigger-on:
192             - patchset-created-event:
193                 exclude-drafts: 'false'
194                 exclude-trivial-rebase: 'false'
195                 exclude-no-code-change: 'false'
196             - draft-published-event
197             - comment-added-contains-event:
198                 comment-contains-value: 'recheck'
199             - comment-added-contains-event:
200                 comment-contains-value: 'reverify'
201           projects:
202             - project-compare-type: 'ANT'
203               project-pattern: '{project}'
204               branches:
205                 - branch-compare-type: 'ANT'
206                   branch-pattern: '**/{branch}'
207               file-paths:
208                 - compare-type: ANT
209                   pattern: '{files}'
210           skip-vote:
211             successful: true
212             failed: true
213             unstable: true
214             notbuilt: true