doctor: fix parameter setting
[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             trigger-on:
52                 - patchset-created-event:
53                     exclude-drafts: 'false'
54                     exclude-trivial-rebase: 'false'
55                     exclude-no-code-change: 'false'
56                 - draft-published-event
57                 - comment-added-contains-event:
58                     comment-contains-value: 'recheck'
59                 - comment-added-contains-event:
60                     comment-contains-value: 'reverify'
61             projects:
62               - project-compare-type: 'ANT'
63                 project-pattern: '{project}'
64                 branches:
65                   - branch-compare-type: 'ANT'
66                     branch-pattern: '**/{branch}'
67                 file-paths:
68                   - compare-type: ANT
69                     pattern: 'tests/**'
70
71     builders:
72         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
73
74 - job-template:
75     name: 'doctor-verify-{installer}-{inspector}-{stream}'
76
77     node: '{slave-label}'
78
79     parameters:
80         - project-parameter:
81             project: '{project}'
82         - gerrit-parameter:
83             branch: '{branch}'
84         - string:
85             name: OS_CREDS
86             default: /home/jenkins/openstack.creds
87             description: 'OpenStack credentials'
88         - '{installer}-defaults'
89         - '{slave-label}-defaults'
90         # functest
91         - string:
92             name: DOCKER_TAG
93             default: '{docker-tag}'
94             description: 'Tag to pull docker image'
95         - string:
96             name: DEPLOY_SCENARIO
97             default: 'os-nosdn-nofeature-ha'
98         # functest-suite-parameter
99         - string:
100             name: FUNCTEST_SUITE_NAME
101             default: '{project}'
102         - string:
103             name: TESTCASE_OPTIONS
104             default: '-e INSPECTOR_TYPE={inspector} -v $WORKSPACE:$HOME/opnfv/repos/doctor'
105             description: 'Addtional parameters specific to test case(s)'
106         # functest-parameter
107         - string:
108             name: GS_PATHNAME
109             default: '{gs-pathname}'
110             description: "Version directory where the opnfv documents will be stored in gs repository"
111         - string:
112             name: FUNCTEST_REPO_DIR
113             default: "/home/opnfv/repos/functest"
114             description: "Directory where the Functest repository is cloned"
115         - string:
116             name: PUSH_RESULTS_TO_DB
117             default: "true"
118             description: "Push the results of all the tests to the resultDB"
119         - string:
120             name: CI_DEBUG
121             default: 'true'
122             description: "Show debug output information"
123
124     scm:
125         - gerrit-trigger-scm:
126             credentials-id: '{ssh-credentials}'
127             refspec: '$GERRIT_REFSPEC'
128             choosing-strategy: 'gerrit'
129
130     triggers:
131         - gerrit:
132             trigger-on:
133                 - patchset-created-event:
134                     exclude-drafts: 'false'
135                     exclude-trivial-rebase: 'false'
136                     exclude-no-code-change: 'false'
137                 - draft-published-event
138                 - comment-added-contains-event:
139                     comment-contains-value: 'recheck'
140                 - comment-added-contains-event:
141                     comment-contains-value: 'reverify'
142             projects:
143               - project-compare-type: 'ANT'
144                 project-pattern: '{project}'
145                 branches:
146                   - branch-compare-type: 'ANT'
147                     branch-pattern: '**/{branch}'
148                 file-paths:
149                   - compare-type: ANT
150                     pattern: 'tests/**'
151             skip-vote:
152                 successful: true
153                 failed: true
154                 unstable: true
155                 notbuilt: true
156
157     builders:
158         - 'functest-suite-builder'
159
160     publishers:
161         - archive:
162             artifacts: '$HOME/opnfv/functest/results/{stream}/{project}.log'