Merge "[doctor] add missing param (GIT_BASE)"
[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: INSPECTOR_TYPE
86             default: '{inspector}'
87             description: 'Doctor inspector type to be used'
88         - string:
89             name: OS_CREDS
90             default: /home/jenkins/openstack.creds
91             description: 'OpenStack credentials'
92         - '{slave-label}-defaults'
93
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100     triggers:
101         - gerrit:
102             trigger-on:
103                 - patchset-created-event:
104                     exclude-drafts: 'false'
105                     exclude-trivial-rebase: 'false'
106                     exclude-no-code-change: 'false'
107                 - draft-published-event
108                 - comment-added-contains-event:
109                     comment-contains-value: 'recheck'
110                 - comment-added-contains-event:
111                     comment-contains-value: 'reverify'
112             projects:
113               - project-compare-type: 'ANT'
114                 project-pattern: '{project}'
115                 branches:
116                   - branch-compare-type: 'ANT'
117                     branch-pattern: '**/{branch}'
118                 file-paths:
119                   - compare-type: ANT
120                     pattern: 'tests/**'
121             skip-vote:
122                 successful: true
123                 failed: true
124                 unstable: true
125                 notbuilt: true
126
127     builders:
128         - trigger-builds:
129           - project: 'functest-{installer}-{pod}-suite-{stream}'
130             current-parameters: true
131             predefined-parameters: |
132               FUNCTEST_SUITE_NAME=doctor
133               TESTCASE_OPTIONS='-e INSPECTOR_TYPE=$INSPECTOR_TYPE -v $WORKSPACE:$HOME/opnfv/repos/doctor'
134             block: true
135             same-node: true