bugfix: wrong usage of '!include-raw'
[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           installer: '{installer}'
128           inspector: '{inspector}'
129     publishers:
130       - 'doctor-verify-publishers-macro'
131
132
133 # -------------------------------
134 # parameter macros
135 # -------------------------------
136 - parameter:
137     name: 'doctor-parameter'
138     parameters:
139       - string:
140           name: INSPECTOR_TYPE
141           default: '{inspector}'
142           description: 'inspector component'
143
144 # -------------------------------
145 # builder macros
146 # -------------------------------
147
148 - builder:
149     name: 'doctor-verify-installer-inspector-builders-macro'
150     builders:
151       - 'clean-workspace-log'
152       - shell: |
153           !include-raw:
154               - ./doctor-env-presetup.sh
155               - ../../utils/fetch_os_creds.sh
156       - shell: |
157           source $HOME/opnfv-openrc.sh
158           source $HOME/os_cacert
159           tox -e py35
160
161 # -------------------------------
162 # publisher macros
163 # -------------------------------
164 - publisher:
165     name: 'doctor-verify-publishers-macro'
166     publishers:
167       - archive:
168           artifacts: 'doctor_tests/*.log'
169       - email-jenkins-admins-on-failure
170
171
172 #####################################
173 # trigger macros
174 #####################################
175 - trigger:
176     name: 'doctor-verify'
177     triggers:
178       - gerrit:
179           server-name: 'gerrit.opnfv.org'
180           trigger-on:
181             - patchset-created-event:
182                 exclude-drafts: 'false'
183                 exclude-trivial-rebase: 'false'
184                 exclude-no-code-change: 'false'
185             - draft-published-event
186             - comment-added-contains-event:
187                 comment-contains-value: 'recheck'
188             - comment-added-contains-event:
189                 comment-contains-value: 'reverify'
190           projects:
191             - project-compare-type: 'ANT'
192               project-pattern: '{project}'
193               branches:
194                 - branch-compare-type: 'ANT'
195                   branch-pattern: '**/{branch}'
196               file-paths:
197                 - compare-type: ANT
198                   pattern: '{files}'
199           skip-vote:
200             successful: true
201             failed: true
202             unstable: true
203             notbuilt: true