Merge "Send Build Notifications to Jenkins Admins"
[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         - 'functest-docs-upload-{stream}'
13
14     stream:
15         - master:
16             branch: '{stream}'
17             gs-pathname: ''
18             disabled: false
19         - danube:
20             branch: 'stable/{stream}'
21             gs-pathname: '/{stream}'
22             disabled: true
23
24 - job-template:
25     name: 'functest-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         - functest-unit-tests-and-docs-build
64
65     publishers:
66         - junit:
67             results: nosetests.xml
68         - cobertura:
69             report-file: "coverage.xml"
70             only-stable: "true"
71             health-auto-update: "true"
72             stability-auto-update: "true"
73             zoom-coverage-chart: "true"
74             targets:
75                 - files:
76                     healthy: 10
77                     unhealthy: 20
78                     failing: 30
79                 - method:
80                     healthy: 50
81                     unhealthy: 40
82                     failing: 30
83
84 - job-template:
85     name: 'functest-docs-upload-{stream}'
86
87     disabled: '{obj:disabled}'
88
89     parameters:
90         - project-parameter:
91             project: '{project}'
92             branch: '{branch}'
93         - 'opnfv-build-ubuntu-defaults'
94
95     scm:
96         - git-scm
97
98     triggers:
99         - gerrit:
100             server-name: 'gerrit.opnfv.org'
101             trigger-on:
102                 - change-merged-event
103                 - comment-added-contains-event:
104                     comment-contains-value: 'remerge'
105             projects:
106               - project-compare-type: 'ANT'
107                 project-pattern: '{project}'
108                 branches:
109                   - branch-compare-type: 'ANT'
110                     branch-pattern: '**/{branch}'
111                 disable-strict-forbidden-file-verification: 'true'
112                 forbidden-file-paths:
113                   - compare-type: ANT
114                     pattern: 'docs/**|.gitignore'
115
116     builders:
117         - functest-upload-doc-artifact
118
119 ################################
120 # job builders
121 ################################
122
123 - builder:
124     name: functest-unit-tests-and-docs-build
125     builders:
126         - shell: |
127             cd $WORKSPACE && tox
128
129 - builder:
130     name: functest-upload-doc-artifact
131     builders:
132         - shell: |
133             cd $WORKSPACE && tox -edocs
134             wget -O - https://git.opnfv.org/releng/plain/utils/upload-artifact.sh | bash -s "functest/api/_build" "docs"