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