7a5bd22f2a42618589759b944409a40d9a607432
[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: DEPLOY_SCENARIO
100             default: 'os-nosdn-nofeature-ha'
101             description: 'Scenario to deploy and test'
102         # functest-suite-parameter
103         - string:
104             name: FUNCTEST_SUITE_NAME
105             default: '{project}'
106         - string:
107             name: TESTCASE_OPTIONS
108             default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:/home/opnfv/repos/doctor'
109             description: 'Addtional parameters specific to test case(s)'
110         # functest-parameter
111         - string:
112             name: GS_PATHNAME
113             default: '{gs-pathname}'
114             description: "Version directory where the opnfv documents will be stored in gs repository"
115         - string:
116             name: FUNCTEST_REPO_DIR
117             default: "/home/opnfv/repos/functest"
118             description: "Directory where the Functest repository is cloned"
119         - string:
120             name: PUSH_RESULTS_TO_DB
121             default: "true"
122             description: "Push the results of all the tests to the resultDB"
123         - string:
124             name: CI_DEBUG
125             default: 'true'
126             description: "Show debug output information"
127
128     scm:
129         - gerrit-trigger-scm:
130             credentials-id: '{ssh-credentials}'
131             refspec: '$GERRIT_REFSPEC'
132             choosing-strategy: 'gerrit'
133
134     triggers:
135         - gerrit:
136             server-name: 'gerrit.opnfv.org'
137             trigger-on:
138                 - patchset-created-event:
139                     exclude-drafts: 'false'
140                     exclude-trivial-rebase: 'false'
141                     exclude-no-code-change: 'false'
142                 - draft-published-event
143                 - comment-added-contains-event:
144                     comment-contains-value: 'recheck'
145                 - comment-added-contains-event:
146                     comment-contains-value: 'reverify'
147             projects:
148               - project-compare-type: 'ANT'
149                 project-pattern: '{project}'
150                 branches:
151                   - branch-compare-type: 'ANT'
152                     branch-pattern: '**/{branch}'
153                 file-paths:
154                   - compare-type: ANT
155                     pattern: 'tests/**'
156             skip-vote:
157                 successful: true
158                 failed: true
159                 unstable: true
160                 notbuilt: true
161
162     builders:
163         - 'functest-suite-builder'
164         - shell: |
165             cp $HOME/opnfv/functest/results/{stream}/{project}.log $WORKSPACE/tests/
166
167     publishers:
168         - archive:
169             artifacts: 'tests/*.log'