7036f20c0294f77405c5cd7b76111e396a8723d4
[releng.git] / jjb / functest / functest-project-jobs.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: functest-project-jobs
7
8     project: 'functest'
9
10     jobs:
11         - 'functest-verify-{stream}'
12
13     stream:
14         - master:
15             branch: '{stream}'
16             gs-pathname: ''
17             disabled: false
18         - danube:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21             disabled: false
22
23 - job-template:
24     name: 'functest-verify-{stream}'
25
26     disabled: '{obj:disabled}'
27
28     parameters:
29         - project-parameter:
30             project: '{project}'
31             branch: '{branch}'
32         - 'opnfv-build-ubuntu-defaults'
33
34     scm:
35         - git-scm-gerrit
36
37     triggers:
38         - gerrit:
39             server-name: 'gerrit.opnfv.org'
40             trigger-on:
41                 - patchset-created-event:
42                     exclude-drafts: 'false'
43                     exclude-trivial-rebase: 'false'
44                     exclude-no-code-change: 'false'
45                 - draft-published-event
46                 - comment-added-contains-event:
47                     comment-contains-value: 'recheck'
48                 - comment-added-contains-event:
49                     comment-contains-value: 'reverify'
50             projects:
51               - project-compare-type: 'ANT'
52                 project-pattern: '{project}'
53                 branches:
54                   - branch-compare-type: 'ANT'
55                     branch-pattern: '**/{branch}'
56                 disable-strict-forbidden-file-verification: 'true'
57                 forbidden-file-paths:
58                   - compare-type: ANT
59                     pattern: 'docs/**|.gitignore'
60
61     builders:
62         - functest-unit-tests-and-docs-build
63
64     publishers:
65         - junit:
66             results: nosetests.xml
67         - cobertura:
68             report-file: "coverage.xml"
69             only-stable: "true"
70             health-auto-update: "true"
71             stability-auto-update: "true"
72             zoom-coverage-chart: "true"
73             targets:
74                 - files:
75                     healthy: 10
76                     unhealthy: 20
77                     failing: 30
78                 - method:
79                     healthy: 50
80                     unhealthy: 40
81                     failing: 30
82
83 ################################
84 # job builders
85 ################################
86
87 - builder:
88     name: functest-unit-tests-and-docs-build
89     builders:
90         - shell: |
91             cd $WORKSPACE && tox