Pod name changes in ARMBAND
[releng.git] / jjb / doctor / doctor.yml
1 - project:
2     name: doctor
3
4     project: '{name}'
5
6     stream:
7         - master:
8             branch: '{stream}'
9             gs-pathname: ''
10             docker-tag: 'latest'
11             disabled: false
12         - danube:
13             branch: 'stable/{stream}'
14             gs-pathname: '/{stream}'
15             docker-tag: 'stable'
16             disabled: false
17
18     installer:
19         - apex:
20             slave-label: 'doctor-apex-verify'
21         - fuel:
22             slave-label: 'doctor-fuel-verify'
23         #- joid:
24         #    slave-label: 'ool-virtual3'
25         #    pod: 'ool-virtual3'
26
27     inspector:
28         - 'sample'
29         - 'congress'
30
31     task:
32         - verify:
33             auto-trigger-name: 'doctor-verify'
34             is-python: false
35         - python-verify:
36             auto-trigger-name: 'doctor-verify'
37             is-python: true
38
39     pod:
40         - arm-pod2:
41             slave-label: '{pod}'
42         - arm-pod5:
43             slave-label: '{pod}'
44
45     jobs:
46         - 'doctor-verify-{stream}'
47         - 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
48         - 'doctor-{task}-{installer}-{inspector}-{stream}'
49
50 - job-template:
51     name: 'doctor-verify-{stream}'
52
53     disabled: '{obj:disabled}'
54
55     parameters:
56         - project-parameter:
57             project: '{project}'
58             branch: '{branch}'
59         - 'opnfv-build-ubuntu-defaults'
60
61     scm:
62         - git-scm-gerrit
63
64     triggers:
65         - gerrit:
66             server-name: 'gerrit.opnfv.org'
67             trigger-on:
68                 - patchset-created-event:
69                     exclude-drafts: 'false'
70                     exclude-trivial-rebase: 'false'
71                     exclude-no-code-change: 'false'
72                 - draft-published-event
73                 - comment-added-contains-event:
74                     comment-contains-value: 'recheck'
75                 - comment-added-contains-event:
76                     comment-contains-value: 'reverify'
77             projects:
78               - project-compare-type: 'ANT'
79                 project-pattern: '{project}'
80                 branches:
81                   - branch-compare-type: 'ANT'
82                     branch-pattern: '**/{branch}'
83                 file-paths:
84                   - compare-type: ANT
85                     pattern: 'tests/**'
86
87     builders:
88         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
89
90 - job-template:
91     name: 'doctor-{task}-{installer}-{inspector}-{pod}-{stream}'
92
93     node: '{slave-label}'
94
95     disabled: '{obj:disabled}'
96
97     parameters:
98         - project-parameter:
99             project: '{project}'
100             branch: '{branch}'
101         - 'opnfv-build-ubuntu-defaults'
102
103     scm:
104         - git-scm-gerrit
105
106
107     triggers:
108         - '{auto-trigger-name}':
109             project: '{project}'
110             branch: '{branch}'
111             files: 'tests/**'
112
113     builders:
114         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
115
116
117 - job-template:
118     name: 'doctor-{task}-{installer}-{inspector}-{stream}'
119
120     node: '{slave-label}'
121
122     parameters:
123         - project-parameter:
124             project: '{project}'
125             branch: '{branch}'
126         - string:
127             name: OS_CREDS
128             default: /home/jenkins/openstack.creds
129             description: 'OpenStack credentials'
130         - '{slave-label}-defaults'
131         - '{installer}-defaults'
132         - string:
133             name: DOCKER_TAG
134             default: '{docker-tag}'
135             description: 'Tag to pull docker image'
136         - string:
137             name: CLEAN_DOCKER_IMAGES
138             default: 'false'
139             description: 'Remove downloaded docker images (opnfv/functest:*)'
140         - string:
141             name: DEPLOY_SCENARIO
142             default: 'os-nosdn-nofeature-ha'
143             description: 'Scenario to deploy and test'
144         # functest-suite-parameter
145         - string:
146             name: FUNCTEST_SUITE_NAME
147             default: 'doctor-notification'
148         - string:
149             name: TESTCASE_OPTIONS
150             default: '-e INSPECTOR_TYPE={inspector} -e PYTHON_ENABLE={is-python} -v $WORKSPACE:/home/opnfv/repos/doctor'
151             description: 'Addtional parameters specific to test case(s)'
152         # functest-parameter
153         - string:
154             name: GS_PATHNAME
155             default: '{gs-pathname}'
156             description: "Version directory where the opnfv documents will be stored in gs repository"
157         - string:
158             name: FUNCTEST_REPO_DIR
159             default: "/home/opnfv/repos/functest"
160             description: "Directory where the Functest repository is cloned"
161         - string:
162             name: PUSH_RESULTS_TO_DB
163             default: "true"
164             description: "Push the results of all the tests to the resultDB"
165         - string:
166             name: CI_DEBUG
167             default: 'true'
168             description: "Show debug output information"
169
170     scm:
171         - git-scm-gerrit
172
173     triggers:
174         - '{auto-trigger-name}':
175             project: '{project}'
176             branch: '{branch}'
177             files: 'tests/**'
178
179     builders:
180         - 'clean-workspace-log'
181         - shell: |
182             # NOTE: Create symbolic link, so that we can archive file outside
183             #       of $WORKSPACE .
184             # NOTE: We are printing all logs under 'tests/' during test run,
185             #       so this symbolic link should not be in 'tests/'. Otherwise,
186             #       we'll have the same log twice in jenkins console log.
187             ln -sfn $HOME/opnfv/functest/results/{stream} functest_results
188             # NOTE: Get functest script in $WORKSPACE. This functest script is
189             #       needed to perform VM image download in set-functest-env.sh
190             #       from E release cycle.
191             mkdir -p functest/ci
192             wget https://git.opnfv.org/functest/plain/functest/ci/download_images.sh -O functest/ci/download_images.sh
193         - 'functest-suite-builder'
194         - shell: |
195             functest_log="$HOME/opnfv/functest/results/{stream}/$FUNCTEST_SUITE_NAME.log"
196             # NOTE: checking the test result, as the previous job could return
197             #       0 regardless the result of doctor test scenario.
198             grep -e ' OK$' $functest_log || exit 1
199
200     publishers:
201         - archive:
202             artifacts: 'tests/*.log'
203         - archive:
204             artifacts: 'functest_results/$FUNCTEST_SUITE_NAME.log'
205         - email-jenkins-admins-on-failure
206
207
208 #####################################
209 # trigger macros
210 #####################################
211 - trigger:
212     name: 'doctor-verify'
213     triggers:
214         - gerrit:
215             server-name: 'gerrit.opnfv.org'
216             trigger-on:
217                 - patchset-created-event:
218                     exclude-drafts: 'false'
219                     exclude-trivial-rebase: 'false'
220                     exclude-no-code-change: 'false'
221                 - draft-published-event
222                 - comment-added-contains-event:
223                     comment-contains-value: 'recheck'
224                 - comment-added-contains-event:
225                     comment-contains-value: 'reverify'
226             projects:
227               - project-compare-type: 'ANT'
228                 project-pattern: '{project}'
229                 branches:
230                   - branch-compare-type: 'ANT'
231                     branch-pattern: '**/{branch}'
232                 file-paths:
233                   - compare-type: ANT
234                     pattern: '{files}'
235             skip-vote:
236                 successful: true
237                 failed: true
238                 unstable: true
239                 notbuilt: true