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