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