Adding POSCA build job for Bottlenecks
[releng.git] / jjb / releng / testapi-automate.yml
1 - project:
2     name: testapi-automate
3     stream:
4         - master:
5             branch: '{stream}'
6             gs-pathname: ''
7     jobs:
8         - 'testapi-automate-{stream}'
9         - 'testapi-verify-{stream}'
10
11     project: 'releng'
12
13 - job:
14     name: 'testapi-mongodb-backup'
15
16     slave-label: 'testresults'
17
18     scm:
19         - git-scm
20
21     triggers:
22         - timed: '@weekly'
23
24     builders:
25         - mongodb-backup
26
27 - job-template:
28     name: 'testapi-verify-{stream}'
29
30     parameters:
31         - project-parameter:
32             project: '{project}'
33             branch: '{branch}'
34         - 'opnfv-build-ubuntu-defaults'
35
36     scm:
37         - git-scm-gerrit
38
39     triggers:
40         - gerrit:
41             server-name: 'gerrit.opnfv.org'
42             trigger-on:
43                 - patchset-created-event:
44                     exclude-drafts: 'false'
45                     exclude-trivial-rebase: 'false'
46                     exclude-no-code-change: 'false'
47                 - draft-published-event
48                 - comment-added-contains-event:
49                     comment-contains-value: 'recheck'
50                 - comment-added-contains-event:
51                     comment-contains-value: 'reverify'
52             projects:
53               - project-compare-type: 'ANT'
54                 project-pattern: '{project}'
55                 branches:
56                   - branch-compare-type: 'ANT'
57                     branch-pattern: '**/{branch}'
58                 file-paths:
59                   - compare-type: 'ANT'
60                     pattern: 'utils/test/testapi/**'
61
62     builders:
63         - run-unit-tests
64
65     publishers:
66         - junit:
67             results: nosetests.xml
68         - cobertura:
69             report-file: "coverage.xml"
70             only-stable: "true"
71             health-auto-update: "false"
72             stability-auto-update: "false"
73             zoom-coverage-chart: "true"
74             targets:
75                 - files:
76                     healthy: 10
77                     unhealthy: 20
78                     failing: 30
79                 - method:
80                     healthy: 50
81                     unhealthy: 40
82                     failing: 30
83
84 - job-template:
85     name: 'testapi-automate-{stream}'
86
87     parameters:
88         - project-parameter:
89             project: '{project}'
90             branch: '{branch}'
91         - string:
92             name: DOCKER_TAG
93             default: "latest"
94             description: "Tag name for testapi docker image"
95         - 'opnfv-build-defaults'
96
97     scm:
98         - git-scm
99
100     triggers:
101         - gerrit:
102             server-name: 'gerrit.opnfv.org'
103             trigger-on:
104                 - change-merged-event
105                 - comment-added-contains-event:
106                     comment-contains-value: 'remerge'
107             projects:
108               - project-compare-type: 'ANT'
109                 project-pattern: '{project}'
110                 branches:
111                   - branch-compare-type: 'ANT'
112                     branch-pattern: '**/{branch}'
113                 file-paths:
114                   - compare-type: 'ANT'
115                     pattern: 'utils/**'
116
117     builders:
118         - docker-update
119         - testapi-doc-build
120         - upload-doc-artifact
121
122 ################################
123 # job builders
124 ################################
125 - builder:
126     name: mongodb-backup
127     builders:
128         - shell: |
129             bash ./jjb/releng/testapi-backup-mongodb.sh
130
131 - builder:
132     name: run-unit-tests
133     builders:
134         - shell: |
135             bash ./utils/test/testapi/run_test.sh
136
137 - builder:
138     name: docker-update
139     builders:
140         - shell: |
141             bash ./jjb/releng/testapi-docker-update.sh
142
143 - builder:
144     name: testapi-doc-build
145     builders:
146         - shell: |
147             bash ./utils/test/testapi/htmlize/doc-build.sh
148
149 - builder:
150     name: upload-doc-artifact
151     builders:
152         - shell: |
153             bash ./utils/test/testapi/htmlize/push-doc-artifact.sh