add ool-virtual2 and ool-virtual3
[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: 'master'
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: 'ool-virtual1'
21             pod: 'ool-virtual1'
22         - fuel:
23             slave-label: 'ool-virtual2'
24             pod: 'ool-virtual2'
25         # TODO(r-mibu): enable this once joid is ready
26         #- joid:
27         #    slave-label: 'ool-virtual3'
28         #    pod: 'ool-virtual3'
29
30     inspector:
31         - 'sample'
32         - 'congress'
33
34     task:
35         - verify:
36             profiler: 'none'
37             auto-trigger-name: 'doctor-verify'
38         - profiling:
39             profiler: 'poc'
40             auto-trigger-name: 'experimental'
41
42     jobs:
43         - 'doctor-verify-{stream}'
44         - 'doctor-{task}-{installer}-{inspector}-{stream}'
45
46 - job-template:
47     name: 'doctor-verify-{stream}'
48
49     disabled: '{obj:disabled}'
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54         - gerrit-parameter:
55             branch: '{branch}'
56         - 'opnfv-build-ubuntu-defaults'
57
58     scm:
59         - git-scm-gerrit
60
61     triggers:
62         - gerrit:
63             server-name: 'gerrit.opnfv.org'
64             trigger-on:
65                 - patchset-created-event:
66                     exclude-drafts: 'false'
67                     exclude-trivial-rebase: 'false'
68                     exclude-no-code-change: 'false'
69                 - draft-published-event
70                 - comment-added-contains-event:
71                     comment-contains-value: 'recheck'
72                 - comment-added-contains-event:
73                     comment-contains-value: 'reverify'
74             projects:
75               - project-compare-type: 'ANT'
76                 project-pattern: '{project}'
77                 branches:
78                   - branch-compare-type: 'ANT'
79                     branch-pattern: '**/{branch}'
80                 file-paths:
81                   - compare-type: ANT
82                     pattern: 'tests/**'
83
84     builders:
85         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
86
87 - job-template:
88     name: 'doctor-{task}-{installer}-{inspector}-{stream}'
89
90     node: '{slave-label}'
91
92     parameters:
93         - project-parameter:
94             project: '{project}'
95         - gerrit-parameter:
96             branch: '{branch}'
97         - string:
98             name: OS_CREDS
99             default: /home/jenkins/openstack.creds
100             description: 'OpenStack credentials'
101         - '{slave-label}-defaults'
102         - string:
103             name: INSTALLER_TYPE
104             default: '{installer}'
105             description: 'Installer used for deploying OPNFV on this POD'
106         - string:
107             name: DOCKER_TAG
108             default: '{docker-tag}'
109             description: 'Tag to pull docker image'
110         - string:
111             name: CLEAN_DOCKER_IMAGES
112             default: 'false'
113             description: 'Remove downloaded docker images (opnfv/functest:*)'
114         - string:
115             name: DEPLOY_SCENARIO
116             default: 'os-nosdn-nofeature-ha'
117             description: 'Scenario to deploy and test'
118         # functest-suite-parameter
119         - string:
120             name: FUNCTEST_SUITE_NAME
121             default: '{project}'
122         - string:
123             name: TESTCASE_OPTIONS
124             default: '-e INSPECTOR_TYPE={inspector} -e PROFILER_TYPE={profiler} -v $WORKSPACE:/home/opnfv/repos/doctor'
125             description: 'Addtional parameters specific to test case(s)'
126         # functest-parameter
127         - string:
128             name: GS_PATHNAME
129             default: '{gs-pathname}'
130             description: "Version directory where the opnfv documents will be stored in gs repository"
131         - string:
132             name: FUNCTEST_REPO_DIR
133             default: "/home/opnfv/repos/functest"
134             description: "Directory where the Functest repository is cloned"
135         - string:
136             name: PUSH_RESULTS_TO_DB
137             default: "true"
138             description: "Push the results of all the tests to the resultDB"
139         - string:
140             name: CI_DEBUG
141             default: 'true'
142             description: "Show debug output information"
143
144     scm:
145         - git-scm-gerrit
146
147     triggers:
148         - '{auto-trigger-name}':
149             project: '{project}'
150             branch: '{branch}'
151
152     builders:
153         - 'functest-suite-builder'
154         - shell: |
155             functest_log="$HOME/opnfv/functest/results/{stream}/{project}.log"
156             to_be_archived="$WORKSPACE/tests/functest-{project}.log"
157             cp $functest_log $to_be_archived
158             # NOTE: checking the test result, as the previous job could return
159             #       0 regardless the result of doctor test scenario.
160             grep -e ' OK$' $functest_log || exit 1
161
162     publishers:
163         - archive:
164             artifacts: 'tests/*.log'
165
166
167 #####################################
168 # trigger macros
169 #####################################
170 - trigger:
171     name: 'doctor-verify'
172     triggers:
173         - gerrit:
174             server-name: 'gerrit.opnfv.org'
175             trigger-on:
176                 - patchset-created-event:
177                     exclude-drafts: 'false'
178                     exclude-trivial-rebase: 'false'
179                     exclude-no-code-change: 'false'
180                 - draft-published-event
181                 - comment-added-contains-event:
182                     comment-contains-value: 'recheck'
183                 - comment-added-contains-event:
184                     comment-contains-value: 'reverify'
185             projects:
186               - project-compare-type: 'ANT'
187                 project-pattern: '{project}'
188                 branches:
189                   - branch-compare-type: 'ANT'
190                     branch-pattern: '**/{branch}'
191                 file-paths:
192                   - compare-type: ANT
193                     pattern: 'tests/**'
194             skip-vote:
195                 successful: true
196                 failed: true
197                 unstable: true
198                 notbuilt: true