6a0768c9c96b53534b6f93e6703052eab8bea0c4
[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         - gerrit-parameter:
32             branch: '{branch}'
33         - 'opnfv-build-ubuntu-defaults'
34
35     scm:
36         - git-scm-gerrit
37
38     triggers:
39         - gerrit:
40             server-name: 'gerrit.opnfv.org'
41             trigger-on:
42                 - patchset-created-event:
43                     exclude-drafts: 'false'
44                     exclude-trivial-rebase: 'false'
45                     exclude-no-code-change: 'false'
46                 - draft-published-event
47                 - comment-added-contains-event:
48                     comment-contains-value: 'recheck'
49                 - comment-added-contains-event:
50                     comment-contains-value: 'reverify'
51             projects:
52               - project-compare-type: 'ANT'
53                 project-pattern: '{project}'
54                 branches:
55                   - branch-compare-type: 'ANT'
56                     branch-pattern: '**/{branch}'
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             $WORKSPACE/run_unit_tests.sh