Merge "add logger common process for releng scripts"
[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
22     inspector:
23         - sample
24         - congress
25
26     jobs:
27         - 'doctor-verify-{stream}'
28         - 'doctor-verify-{installer}-{inspector}-{stream}'
29
30 - job-template:
31     name: 'doctor-verify-{stream}'
32
33     disabled: '{obj:disabled}'
34
35     parameters:
36         - project-parameter:
37             project: '{project}'
38         - gerrit-parameter:
39             branch: '{branch}'
40         - 'opnfv-build-ubuntu-defaults'
41
42     scm:
43         - gerrit-trigger-scm:
44             credentials-id: '{ssh-credentials}'
45             refspec: '$GERRIT_REFSPEC'
46             choosing-strategy: 'gerrit'
47
48     triggers:
49         - gerrit:
50             trigger-on:
51                 - patchset-created-event:
52                     exclude-drafts: 'false'
53                     exclude-trivial-rebase: 'false'
54                     exclude-no-code-change: 'false'
55                 - draft-published-event
56                 - comment-added-contains-event:
57                     comment-contains-value: 'recheck'
58                 - comment-added-contains-event:
59                     comment-contains-value: 'reverify'
60             projects:
61               - project-compare-type: 'ANT'
62                 project-pattern: '{project}'
63                 branches:
64                   - branch-compare-type: 'ANT'
65                     branch-pattern: '**/{branch}'
66                 file-paths:
67                   - compare-type: ANT
68                     pattern: 'tests/**'
69
70     builders:
71         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
72
73 - job-template:
74     name: 'doctor-verify-{installer}-{inspector}-{stream}'
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - gerrit-parameter:
80             branch: '{branch}'
81         - string:
82             name: INSPECTOR_TYPE
83             default: '{inspector}'
84             description: 'Doctor inspector type to be used'
85         - string:
86             name: INSTALLER_TYPE
87             default: apex
88             description: 'OPNFV Installer type'
89         - string:
90             name: OS_CREDS
91             default: /home/jenkins/openstack.creds
92             description: 'OpenStack credentials'
93         - '{installer}-defaults'
94         - '{slave-label}-defaults'
95         - 'functest-suite-parameter'
96         - string:
97             name: DEPLOY_SCENARIO
98             default: 'os-odl_l2-nofeature-ha'
99         - string:
100             name: DOCKER_TAG
101             default: '{docker_tag}'
102             description: 'Tag to pull docker image'
103         - functest-parameter:
104             gs-pathname: '{gs-pathname}'
105
106     scm:
107         - gerrit-trigger-scm:
108             credentials-id: '{ssh-credentials}'
109             refspec: '$GERRIT_REFSPEC'
110             choosing-strategy: 'gerrit'
111
112     triggers:
113         - gerrit:
114             trigger-on:
115                 - patchset-created-event:
116                     exclude-drafts: 'false'
117                     exclude-trivial-rebase: 'false'
118                     exclude-no-code-change: 'false'
119                 - draft-published-event
120                 - comment-added-contains-event:
121                     comment-contains-value: 'recheck'
122                 - comment-added-contains-event:
123                     comment-contains-value: 'reverify'
124             projects:
125               - project-compare-type: 'ANT'
126                 project-pattern: '{project}'
127                 branches:
128                   - branch-compare-type: 'ANT'
129                     branch-pattern: '**/{branch}'
130                 file-paths:
131                   - compare-type: ANT
132                     pattern: 'tests/**'
133
134     builders:
135         - 'functest-suite-builder':
136             TESTCASE_OPTIONS: '-e INSPECTOR_TYPE=$INSPECTOR_TYPE -v $WORKSPACE:$HOME/opnfv/repos/doctor'