02b1d9b9991ffcf51a7a6903dfa6d3aa535c1bb4
[releng.git] / jjb / opnfv / 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             gs-pathname: ''
18         - brahmaputra:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21
22 ########################
23 # job templates
24 ########################
25
26 - job-template:
27     name: 'opnfv-docs-verify-{stream}'
28
29     parameters:
30         - project-parameter:
31             project: $GERRIT_PROJECT
32         - gerrit-parameter:
33             branch: '{branch}'
34
35     scm:
36         - gerrit-trigger-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: '$GERRIT_REFSPEC'
39             choosing-strategy: 'gerrit'
40
41     triggers:
42         - gerrit:
43             trigger-on:
44                 - patchset-created-event:
45                     exclude-drafts: 'false'
46                     exclude-trivial-rebase: 'false'
47                     exclude-no-code-change: 'false'
48                 - draft-published-event
49                 - comment-added-contains-event:
50                     comment-contains-value: 'recheck'
51                 - comment-added-contains-event:
52                     comment-contains-value: 'reverify'
53             projects:
54               - project-compare-type: 'REG_EXP'
55                 project-pattern: '*'
56                 branches:
57                   - branch-compare-type: 'ANT'
58                     branch-pattern: '**/{branch}'
59                 file-paths:
60                   - compare-type: 'ANT'
61                     pattern: 'docs/**'
62                   - compare-type: 'ANT'
63                     pattern: 'yardstick/**'
64
65     builders:
66         - upload-review-docs
67
68 - job-template:
69     name: 'opnfv-docs-merge-{stream}'
70
71     parameters:
72         - project-parameter:
73             project: $GERRIT_PROJECT
74         - gerrit-parameter:
75             branch: '{branch}'
76         - string:
77             name: GS_URL
78             default: '$GS_BASE{gs-pathname}'
79             description: "Directory where the build artifact will be located upon the completion     of the build."
80
81     scm:
82         - gerrit-trigger-scm:
83             credentials-id: '{ssh-credentials}'
84             refspec: '$GERRIT_REFSPEC'
85             choosing-strategy: 'gerrit'
86
87     triggers:
88         - gerrit:
89             trigger-on:
90                 - change-merged-event
91                 - comment-added-contains-event:
92                     comment-contains-value: 'remerge'
93             projects:
94               - project-compare-type: 'REG_EXP'
95                 project-pattern: '*'
96                 branches:
97                   - branch-compare-type: 'ANT'
98                     branch-pattern: '**/{branch}'
99                 file-paths:
100                   - compare-type: 'ANT'
101                     pattern: 'docs/**'
102                   - compare-type: 'ANT'
103                     pattern: 'yardstick/**'
104
105     builders:
106         - upload-merged-docs