0c11757ecc5f0897623dff70fb2b44165d806f0a
[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: 'ANT'
55                 project-pattern: '(?!yardstick)'
56                 branches:
57                   - branch-compare-type: 'ANT'
58                     branch-pattern: '**/{branch}'
59                 file-paths:
60                   - compare-type: ANT
61                     pattern: 'docs/**'
62               - project-compare-type: 'ANT'
63                 project-pattern: 'yardstick'
64                 branches:
65                   - branch-compare-type: 'ANT'
66                     branch-pattern: '**/{branch}'
67
68     builders:
69         - upload-review-docs
70
71 - job-template:
72     name: 'opnfv-docs-merge-{stream}'
73
74     parameters:
75         - project-parameter:
76             project: $GERRIT_PROJECT
77         - gerrit-parameter:
78             branch: '{branch}'
79         - string:
80             name: GS_URL
81             default: '$GS_BASE{gs-pathname}'
82             description: "Directory where the build artifact will be located upon the completion     of the build."
83
84     scm:
85         - gerrit-trigger-scm:
86             credentials-id: '{ssh-credentials}'
87             refspec: '$GERRIT_REFSPEC'
88             choosing-strategy: 'gerrit'
89
90     triggers:
91         - gerrit:
92             trigger-on:
93                 - change-merged-event
94                 - comment-added-contains-event:
95                     comment-contains-value: 'remerge'
96             projects:
97               - project-compare-type: 'ANT'
98                 project-pattern: '(?!yardstick)'
99                 branches:
100                   - branch-compare-type: 'ANT'
101                     branch-pattern: '**/{branch}'
102                 file-paths:
103                   - compare-type: ANT
104                     pattern: 'docs/**'
105               - project-compare-type: 'ANT'
106                 project-pattern: 'yardstick'
107                 branches:
108                   - branch-compare-type: 'ANT'
109                     branch-pattern: '**/{branch}'
110
111     builders:
112         - upload-merged-docs