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