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