bug fix: bad path on auto generated documentation
[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         - email-jenkins-admins-on-failure
84
85 - job-template:
86     name: 'functest-docs-upload-{stream}'
87
88     disabled: '{obj:disabled}'
89
90     parameters:
91         - project-parameter:
92             project: '{project}'
93             branch: '{branch}'
94         - 'opnfv-build-ubuntu-defaults'
95
96     scm:
97         - git-scm
98
99     triggers:
100         - gerrit:
101             server-name: 'gerrit.opnfv.org'
102             trigger-on:
103                 - change-merged-event
104                 - comment-added-contains-event:
105                     comment-contains-value: 'remerge'
106             projects:
107               - project-compare-type: 'ANT'
108                 project-pattern: '{project}'
109                 branches:
110                   - branch-compare-type: 'ANT'
111                     branch-pattern: '**/{branch}'
112                 disable-strict-forbidden-file-verification: 'true'
113                 forbidden-file-paths:
114                   - compare-type: ANT
115                     pattern: 'docs/**|.gitignore'
116
117     builders:
118         - functest-upload-doc-artifact
119
120 ################################
121 # job builders
122 ################################
123
124 - builder:
125     name: functest-unit-tests-and-docs-build
126     builders:
127         - shell: |
128             cd $WORKSPACE && tox
129
130 - builder:
131     name: functest-upload-doc-artifact
132     builders:
133         - shell: |
134             cd $WORKSPACE && tox -edocs
135             wget -O - https://git.opnfv.org/releng/plain/utils/upload-artifact.sh | bash -s "docs/api/_build" "docs"