Apex: Adds ability to force snapshot promotion
[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       - gambia: &gambia
20           branch: 'stable/{stream}'
21           gs-pathname: '/{stream}'
22           disabled: false
23       - fraser:
24           branch: 'stable/{stream}'
25           gs-pathname: '/{stream}'
26           disabled: true
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           cd $WORKSPACE && tox
81
82 ################################
83 # job publishers
84 ################################
85 - publisher:
86     name: 'sfc-unit-tests-and-docs-publisher'
87     publishers:
88       - junit:
89           results: nosetests.xml
90       - cobertura:
91           report-file: "coverage.xml"
92           only-stable: "true"
93           fail-no-reports: "true"
94           health-auto-update: "true"
95           stability-auto-update: "true"
96           zoom-coverage-chart: "true"
97           targets:
98             - files:
99                 healthy: 0
100                 unhealthy: 0
101                 failing: 0
102             - method:
103                 healthy: 0
104                 unhealthy: 0
105                 failing: 0
106       - email-jenkins-admins-on-failure