661f060ee3340465ab41a553688d162cb1c20182
[releng.git] / jjb / opnfvdocs / opnfvdocs.yml
1 ########################
2 # Job configuration for opnfvdocs
3 ########################
4 - project:
5
6     name: opnfvdocs
7
8     project: '{name}'
9
10     jobs:
11         - 'opnfvdocs-verify-{stream}'
12         - 'opnfvdocs-merge-{stream}'
13         - 'opnfvdocs-daily-{stream}'
14
15     stream:
16         - master:
17             branch: '{stream}'
18             gs-pathname: ''
19             disabled: false
20         - danube:
21             branch: 'stable/{stream}'
22             gs-pathname: '/{stream}'
23             disabled: true
24
25 ########################
26 # job templates
27 ########################
28
29 - job-template:
30     name: 'opnfvdocs-verify-{stream}'
31
32     disabled: '{obj:disabled}'
33
34     parameters:
35         - project-parameter:
36             project: $GERRIT_PROJECT
37             branch: '{branch}'
38         - string:
39             name: GIT_CLONE_BASE
40             default: ssh://gerrit.opnfv.org:29418
41             description: "Used for overriding the GIT URL coming from parameters macro."
42
43     scm:
44         - git-scm-gerrit
45
46     triggers:
47         - gerrit:
48             server-name: 'gerrit.opnfv.org'
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: 'REG_EXP'
61                 project-pattern: '{project}'
62                 branches:
63                   - branch-compare-type: 'ANT'
64                     branch-pattern: '**/{branch}'
65             skip-vote:
66                 successful: true
67                 failed: true
68                 unstable: true
69                 notbuilt: true
70
71     builders:
72         - check-bash-syntax
73
74 - job-template:
75     name: 'opnfvdocs-merge-{stream}'
76
77     disabled: '{obj:disabled}'
78
79     parameters:
80         - project-parameter:
81             project: $GERRIT_PROJECT
82             branch: '{branch}'
83         - string:
84             name: GIT_CLONE_BASE
85             default: ssh://gerrit.opnfv.org:29418
86             description: "Used for overriding the GIT URL coming from parameters macro."
87         - string:
88             name: GS_URL
89             default: '$GS_BASE{gs-pathname}'
90             description: "Directory where the build artifact will be located upon the completion of the build."
91
92     scm:
93         - git-scm
94
95     triggers:
96         - gerrit:
97             server-name: 'gerrit.opnfv.org'
98             trigger-on:
99                 - change-merged-event
100                 - comment-added-contains-event:
101                     comment-contains-value: 'remerge'
102             projects:
103               - project-compare-type: 'REG_EXP'
104                 project-pattern: '{project}'
105                 branches:
106                   - branch-compare-type: 'ANT'
107                     branch-pattern: '**/{branch}'
108
109     builders:
110         - check-bash-syntax
111
112 - job-template:
113     name: 'opnfvdocs-daily-{stream}'
114
115     disabled: true
116
117     parameters:
118         - project-parameter:
119             project: '{project}'
120             branch: '{branch}'
121         - string:
122             name: GS_URL
123             default: '$GS_BASE{gs-pathname}'
124             description: "Directory where the build artifact will be located upon the completion of the build."
125         - string:
126             name: GIT_CLONE_BASE
127             default: ssh://gerrit.opnfv.org:29418
128             description: "Used for overriding the GIT URL coming from parameters macro."
129
130     scm:
131         - git-scm
132
133     triggers:
134         - timed: '0 H/6 * * *'
135
136     builders:
137         - build-html-and-pdf-docs-output
138 #        - upload-generated-docs-to-opnfv-artifacts