Merge "Include yamllint on build servers"
[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: &fraser
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           disabled: false
23
24 - job-template:
25     name: 'sfc-verify-{stream}'
26
27     disabled: '{obj:disabled}'
28
29     parameters:
30       - project-parameter:
31           project: '{project}'
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               disable-strict-forbidden-file-verification: 'true'
58               forbidden-file-paths:
59                 - compare-type: ANT
60                   pattern: 'docs/**|.gitignore'
61
62     builders:
63       - sfc-unit-tests-and-docs
64
65     publishers:
66       - sfc-unit-tests-and-docs-publisher
67
68 ################################
69 # job builders
70 ################################
71
72 - builder:
73     name: sfc-unit-tests-and-docs
74     builders:
75       - shell: |
76           cd $WORKSPACE && tox
77
78 ################################
79 # job publishers
80 ################################
81 - publisher:
82     name: 'sfc-unit-tests-and-docs-publisher'
83     publishers:
84       - junit:
85           results: nosetests.xml
86       - cobertura:
87           report-file: "coverage.xml"
88           only-stable: "true"
89           fail-no-reports: "true"
90           health-auto-update: "true"
91           stability-auto-update: "true"
92           zoom-coverage-chart: "true"
93           targets:
94             - files:
95                 healthy: 0
96                 unhealthy: 0
97                 failing: 0
98             - method:
99                 healthy: 0
100                 unhealthy: 0
101                 failing: 0
102       - email-jenkins-admins-on-failure