opnfv-docs: Enable Euphrates jobs
[releng.git] / jjb / releng / opnfv-docs.yml
1 ---
2 ########################
3 # Job configuration for opnfv-docs
4 ########################
5 - project:
6
7     name: opnfv-docs
8
9     project: opnfv-docs
10
11     jobs:
12       - 'opnfv-docs-verify-{stream}'
13       - 'opnfv-docs-merge-{stream}'
14
15     stream:
16       - master:
17           branch: '{stream}'
18           doc-version: ''
19           gs-pathname: ''
20           disabled: false
21       - euphrates:
22           branch: 'stable/{stream}'
23           doc-version: '5.0.0'
24           gs-pathname: '/{stream}/{doc-version}'
25           disabled: false
26
27 ########################
28 # job templates
29 ########################
30
31 - job-template:
32     name: 'opnfv-docs-verify-{stream}'
33
34     disabled: '{obj:disabled}'
35
36     parameters:
37       - project-parameter:
38           project: $GERRIT_PROJECT
39           branch: '{branch}'
40
41     scm:
42       - git-scm-gerrit
43
44     triggers:
45       - gerrit:
46           server-name: 'gerrit.opnfv.org'
47           trigger-on:
48             - patchset-created-event:
49                 exclude-drafts: 'false'
50                 exclude-trivial-rebase: 'false'
51                 exclude-no-code-change: 'false'
52             - draft-published-event
53             - comment-added-contains-event:
54                 comment-contains-value: 'recheck'
55             - comment-added-contains-event:
56                 comment-contains-value: 'reverify'
57           projects:
58             - project-compare-type: 'ANT'
59               project-pattern: '*'
60               branches:
61                 - branch-compare-type: 'ANT'
62                   branch-pattern: '**/{branch}'
63               file-paths:
64                 - compare-type: ANT
65                   pattern: docs/**
66                 - compare-type: ANT
67                   pattern: yardstick/**
68
69     builders:
70       - upload-review-docs
71
72 - job-template:
73     name: 'opnfv-docs-merge-{stream}'
74
75     disabled: '{obj:disabled}'
76
77     parameters:
78       - project-parameter:
79           project: $GERRIT_PROJECT
80           branch: '{branch}'
81       - string:
82           name: GS_URL
83           default: '$GS_BASE{gs-pathname}'
84           description: "Directory where the build artifact will be located upon the completion of the build."
85       - string:
86           name: GERRIT_REFSPEC
87           default: 'refs/heads/{branch}'
88           description: "JJB configured GERRIT_REFSPEC parameter"
89
90     scm:
91       - git-scm
92
93     triggers:
94       - gerrit:
95           server-name: 'gerrit.opnfv.org'
96           trigger-on:
97             - change-merged-event
98             - comment-added-contains-event:
99                 comment-contains-value: 'remerge'
100             - comment-added-contains-event:
101                 comment-contains-value: 'rebuild docs'
102           projects:
103             - project-compare-type: 'ANT'
104               project-pattern: '*'
105               branches:
106                 - branch-compare-type: 'ANT'
107                   branch-pattern: '**/{branch}'
108               file-paths:
109                 - compare-type: ANT
110                   pattern: docs/**
111                 - compare-type: ANT
112                   pattern: yardstick/**
113
114     builders:
115       - upload-merged-docs