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