888f0ed796f4a32ee77d209ec7b714382fbda336
[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         - colorado:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21             disabled: true
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         - gerrit-trigger-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: '$GERRIT_REFSPEC'
39             choosing-strategy: 'gerrit'
40
41     triggers:
42         - gerrit:
43             server-name: 'gerrit.opnfv.org'
44             trigger-on:
45                 - patchset-created-event:
46                     exclude-drafts: 'false'
47                     exclude-trivial-rebase: 'false'
48                     exclude-no-code-change: 'false'
49                 - draft-published-event
50                 - comment-added-contains-event:
51                     comment-contains-value: 'recheck'
52                 - comment-added-contains-event:
53                     comment-contains-value: 'reverify'
54             projects:
55               - project-compare-type: 'ANT'
56                 project-pattern: '{project}'
57                 branches:
58                   - branch-compare-type: 'ANT'
59                     branch-pattern: '**/{branch}'
60                 forbidden-file-paths:
61                   - compare-type: ANT
62                     pattern: 'docs/**|.gitignore'
63
64     builders:
65         - functest-unit-tests-and-docs-build
66
67     publishers:
68         - junit:
69             results: nosetests.xml
70         - cobertura:
71             report-file: "coverage.xml"
72             only-stable: "true"
73             health-auto-update: "true"
74             stability-auto-update: "true"
75             zoom-coverage-chart: "true"
76             targets:
77                 - files:
78                     healthy: 10
79                     unhealthy: 20
80                     failing: 30
81                 - method:
82                     healthy: 50
83                     unhealthy: 40
84                     failing: 30
85
86 ################################
87 # job builders
88 ################################
89
90 - builder:
91     name: functest-unit-tests-and-docs-build
92     builders:
93         - shell: |
94             $WORKSPACE/run_unit_tests.sh