724ef6aab24b5d45ada74625585297256c620fbe
[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         - colorado:
21             branch: 'stable/{stream}'
22             gs-pathname: '/{stream}'
23             disabled: false
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         - gerrit-parameter:
38             branch: '{branch}'
39         - string:
40             name: GIT_CLONE_BASE
41             default: ssh://gerrit.opnfv.org:29418
42             description: "Used for overriding the GIT URL coming from parameters macro."
43
44     scm:
45         - gerrit-trigger-scm:
46             credentials-id: '{ssh-credentials}'
47             refspec: '$GERRIT_REFSPEC'
48             choosing-strategy: 'gerrit'
49
50     triggers:
51         - gerrit:
52             server-name: 'gerrit.opnfv.org'
53             trigger-on:
54                 - patchset-created-event:
55                     exclude-drafts: 'false'
56                     exclude-trivial-rebase: 'false'
57                     exclude-no-code-change: 'false'
58                 - draft-published-event
59                 - comment-added-contains-event:
60                     comment-contains-value: 'recheck'
61                 - comment-added-contains-event:
62                     comment-contains-value: 'reverify'
63             projects:
64               - project-compare-type: 'REG_EXP'
65                 project-pattern: '{project}'
66                 branches:
67                   - branch-compare-type: 'ANT'
68                     branch-pattern: '**/{branch}'
69
70     builders:
71         - check-bash-syntax
72
73 - job-template:
74     name: 'opnfvdocs-merge-{stream}'
75
76     disabled: '{obj:disabled}'
77
78     parameters:
79         - project-parameter:
80             project: $GERRIT_PROJECT
81         - gerrit-parameter:
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         - gerrit-trigger-scm:
94             credentials-id: '{ssh-credentials}'
95             refspec: '$GERRIT_REFSPEC'
96             choosing-strategy: 'gerrit'
97
98     triggers:
99         - gerrit:
100             server-name: 'gerrit.opnfv.org'
101             trigger-on:
102                 - change-merged-event
103                 - comment-added-contains-event:
104                     comment-contains-value: 'remerge'
105             projects:
106               - project-compare-type: 'REG_EXP'
107                 project-pattern: '{project}'
108                 branches:
109                   - branch-compare-type: 'ANT'
110                     branch-pattern: '**/{branch}'
111
112     builders:
113         - check-bash-syntax
114
115 - job-template:
116     name: 'opnfvdocs-daily-{stream}'
117
118     disabled: true
119
120     parameters:
121         - project-parameter:
122             project: '{project}'
123         - string:
124             name: GS_URL
125             default: '$GS_BASE{gs-pathname}'
126             description: "Directory where the build artifact will be located upon the completion of the build."
127         - string:
128             name: GIT_CLONE_BASE
129             default: ssh://gerrit.opnfv.org:29418
130             description: "Used for overriding the GIT URL coming from parameters macro."
131         - string:
132             name: GERRIT_BRANCH
133             default: '{branch}'
134             description: 'Specify the branch in this way in order to be able to use build-opnfv-composite-docs builder.'
135
136     scm:
137         - git-scm:
138             credentials-id: '{ssh-credentials}'
139             refspec: ''
140             branch: '{branch}'
141
142     triggers:
143         - timed: '0 H/6 * * *'
144
145     builders:
146         - build-html-and-pdf-docs-output
147 #        - upload-generated-docs-to-opnfv-artifacts
148