442e8ea71317e210876f3afb6b3e63959573a607
[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         - colorado:
21             branch: 'stable/{stream}'
22             doc-version: '3.0'
23             gs-pathname: '/{stream}/{doc-version}'
24             disabled: false
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         - gerrit-trigger-scm:
43             credentials-id: '{ssh-credentials}'
44             refspec: '$GERRIT_REFSPEC'
45             choosing-strategy: 'gerrit'
46
47     triggers:
48         - gerrit:
49             trigger-on:
50                 - patchset-created-event:
51                     exclude-drafts: 'false'
52                     exclude-trivial-rebase: 'false'
53                     exclude-no-code-change: 'false'
54                 - draft-published-event
55                 - comment-added-contains-event:
56                     comment-contains-value: 'recheck'
57                 - comment-added-contains-event:
58                     comment-contains-value: 'reverify'
59             projects:
60                 - project-compare-type: 'ANT'
61                   project-pattern: '*'
62                   branches:
63                       - branch-compare-type: 'ANT'
64                         branch-pattern: '**/{branch}'
65                   file-paths:
66                       - compare-type: ANT
67                         pattern: docs/**
68                       - compare-type: ANT
69                         pattern: yardstick/**
70
71     builders:
72         - upload-review-docs
73
74 - job-template:
75     name: 'opnfv-docs-merge-{stream}'
76
77     disabled: '{obj:disabled}'
78
79     parameters:
80         - project-parameter:
81             project: $GERRIT_PROJECT
82         - gerrit-parameter:
83             branch: '{branch}'
84         - string:
85             name: GS_URL
86             default: '$GS_BASE{gs-pathname}'
87             description: "Directory where the build artifact will be located upon the completion of the build."
88         - string:
89             name: GERRIT_REFSPEC
90             default: 'refs/heads/{branch}'
91             description: "JJB configured GERRIT_REFSPEC parameter"
92
93     scm:
94         - gerrit-trigger-scm:
95             credentials-id: '{ssh-credentials}'
96             refspec: '$GERRIT_REFSPEC'
97             choosing-strategy: 'gerrit'
98
99     triggers:
100         - gerrit:
101             trigger-on:
102                 - change-merged-event
103                 - comment-added-contains-event:
104                     comment-contains-value: 'remerge'
105                 - comment-added-contains-event:
106                     comment-contains-value: 'rebuild docs'
107             projects:
108                 - project-compare-type: 'ANT'
109                   project-pattern: '*'
110                   branches:
111                       - branch-compare-type: 'ANT'
112                         branch-pattern: '**/{branch}'
113                   file-paths:
114                       - compare-type: ANT
115                         pattern: docs/**
116                       - compare-type: ANT
117                         pattern: yardstick/**
118
119     builders:
120         - upload-merged-docs