remove congress test in Daisy
[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
103 - job-template:
104     name: 'doctor-verify-{installer}-{inspector}-{arch}-{stream}'
105     disabled: '{obj:disabled}'
106     node: 'doctor-{installer}-{arch}'
107     wrappers:
108       - ssh-agent-wrapper
109       - build-timeout:
110           timeout: 30
111     parameters:
112       - project-parameter:
113           project: '{project}'
114           branch: '{branch}'
115       - '{installer}-defaults'
116       - 'doctor-slave-parameter'
117       - 'doctor-parameter':
118           inspector: '{inspector}'
119     scm:
120       - git-scm-gerrit
121     builders:
122       - 'doctor-verify-installer-inspector-builders-macro'
123     publishers:
124       - 'doctor-verify-publishers-macro'
125
126
127 # -------------------------------
128 # parameter macros
129 # -------------------------------
130 - parameter:
131     name: 'doctor-parameter'
132     parameters:
133       - string:
134           name: INSPECTOR_TYPE
135           default: '{inspector}'
136           description: 'inspector component'
137
138 # -------------------------------
139 # builder macros
140 # -------------------------------
141
142 - builder:
143     name: 'doctor-verify-installer-inspector-builders-macro'
144     builders:
145       # yamllint disable rule:indentation
146       - shell:
147           !include-raw:
148               - ./doctor-env-presetup.sh
149               - ../../utils/fetch_os_creds.sh
150       - shell: |
151           # prepare the env for test
152           source $HOME/opnfv-openrc.sh
153           if [ -f $HOME/os_cacert ]; then
154               export OS_CACERT=$HOME/os_cacert
155           fi
156           source $HOME/opnfv-installer.sh
157
158           # run tox to trigger the test
159           # As Jenkins user, it has no permission to send ICMP package
160           sudo -E tox -e py34
161
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       - workspace-cleanup
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