12950338dd04a607ae8d4bdd447f46e92cd5d5e1
[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
66     builders:
67         - check-bash-syntax
68
69 - job-template:
70     name: 'opnfvdocs-merge-{stream}'
71
72     disabled: '{obj:disabled}'
73
74     parameters:
75         - project-parameter:
76             project: $GERRIT_PROJECT
77             branch: '{branch}'
78         - string:
79             name: GIT_CLONE_BASE
80             default: ssh://gerrit.opnfv.org:29418
81             description: "Used for overriding the GIT URL coming from parameters macro."
82         - string:
83             name: GS_URL
84             default: '$GS_BASE{gs-pathname}'
85             description: "Directory where the build artifact will be located upon the completion of the build."
86
87     scm:
88         - git-scm
89
90     triggers:
91         - gerrit:
92             server-name: 'gerrit.opnfv.org'
93             trigger-on:
94                 - change-merged-event
95                 - comment-added-contains-event:
96                     comment-contains-value: 'remerge'
97             projects:
98               - project-compare-type: 'REG_EXP'
99                 project-pattern: '{project}'
100                 branches:
101                   - branch-compare-type: 'ANT'
102                     branch-pattern: '**/{branch}'
103
104     builders:
105         - check-bash-syntax
106
107 - job-template:
108     name: 'opnfvdocs-daily-{stream}'
109
110     disabled: true
111
112     parameters:
113         - project-parameter:
114             project: '{project}'
115             branch: '{branch}'
116         - string:
117             name: GS_URL
118             default: '$GS_BASE{gs-pathname}'
119             description: "Directory where the build artifact will be located upon the completion of the build."
120         - string:
121             name: GIT_CLONE_BASE
122             default: ssh://gerrit.opnfv.org:29418
123             description: "Used for overriding the GIT URL coming from parameters macro."
124
125     scm:
126         - git-scm
127
128     triggers:
129         - timed: '0 H/6 * * *'
130
131     builders:
132         - build-html-and-pdf-docs-output
133 #        - upload-generated-docs-to-opnfv-artifacts