Merge "jjb: infra: bifrost-verify.sh: Replace 'exit' with 'return'"
[releng.git] / jjb / releng / opnfv-docs.yml
1 ########################
2 # Job configuration for opnfv-docs
3 ########################
4 - project:
5
6     name: opnfv-docs
7
8     project: opnfv-docs
9
10     jobs:
11         - 'opnfv-docs-verify-{stream}'
12         - 'opnfv-docs-merge-{stream}'
13
14     stream:
15         - master:
16             branch: '{stream}'
17             doc-version: ''
18             gs-pathname: ''
19             disabled: false
20         - danube:
21             branch: 'stable/{stream}'
22             doc-version: '3.0'
23             gs-pathname: '/{stream}/{doc-version}'
24             disabled: true
25
26 ########################
27 # job templates
28 ########################
29
30 - job-template:
31     name: 'opnfv-docs-verify-{stream}'
32
33     disabled: '{obj:disabled}'
34
35     parameters:
36         - project-parameter:
37             project: $GERRIT_PROJECT
38         - gerrit-parameter:
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         - gerrit-parameter:
81             branch: '{branch}'
82         - string:
83             name: GS_URL
84             default: '$GS_BASE{gs-pathname}'
85             description: "Directory where the build artifact will be located upon the completion of the build."
86         - string:
87             name: GERRIT_REFSPEC
88             default: 'refs/heads/{branch}'
89             description: "JJB configured GERRIT_REFSPEC parameter"
90
91     scm:
92         - git-scm-gerrit
93
94     triggers:
95         - gerrit:
96             server-name: 'gerrit.opnfv.org'
97             trigger-on:
98                 - change-merged-event
99                 - comment-added-contains-event:
100                     comment-contains-value: 'remerge'
101                 - comment-added-contains-event:
102                     comment-contains-value: 'rebuild docs'
103             projects:
104                 - project-compare-type: 'ANT'
105                   project-pattern: '*'
106                   branches:
107                       - branch-compare-type: 'ANT'
108                         branch-pattern: '**/{branch}'
109                   file-paths:
110                       - compare-type: ANT
111                         pattern: docs/**
112                       - compare-type: ANT
113                         pattern: yardstick/**
114
115     builders:
116         - upload-merged-docs