clean scm defenitions
[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         - git-scm-gerrit
46
47     triggers:
48         - gerrit:
49             server-name: 'gerrit.opnfv.org'
50             trigger-on:
51                 - patchset-created-event:
52                     exclude-drafts: 'false'
53                     exclude-trivial-rebase: 'false'
54                     exclude-no-code-change: 'false'
55                 - draft-published-event
56                 - comment-added-contains-event:
57                     comment-contains-value: 'recheck'
58                 - comment-added-contains-event:
59                     comment-contains-value: 'reverify'
60             projects:
61               - project-compare-type: 'REG_EXP'
62                 project-pattern: '{project}'
63                 branches:
64                   - branch-compare-type: 'ANT'
65                     branch-pattern: '**/{branch}'
66
67     builders:
68         - check-bash-syntax
69
70 - job-template:
71     name: 'opnfvdocs-merge-{stream}'
72
73     disabled: '{obj:disabled}'
74
75     parameters:
76         - project-parameter:
77             project: $GERRIT_PROJECT
78         - gerrit-parameter:
79             branch: '{branch}'
80         - string:
81             name: GIT_CLONE_BASE
82             default: ssh://gerrit.opnfv.org:29418
83             description: "Used for overriding the GIT URL coming from parameters macro."
84         - string:
85             name: GS_URL
86             default: '$GS_BASE{gs-pathname}'
87             description: "Directory where the build artifact will be located upon the completion of the build."
88
89     scm:
90         - git-scm-gerrit
91
92     triggers:
93         - gerrit:
94             server-name: 'gerrit.opnfv.org'
95             trigger-on:
96                 - change-merged-event
97                 - comment-added-contains-event:
98                     comment-contains-value: 'remerge'
99             projects:
100               - project-compare-type: 'REG_EXP'
101                 project-pattern: '{project}'
102                 branches:
103                   - branch-compare-type: 'ANT'
104                     branch-pattern: '**/{branch}'
105
106     builders:
107         - check-bash-syntax
108
109 - job-template:
110     name: 'opnfvdocs-daily-{stream}'
111
112     disabled: true
113
114     parameters:
115         - project-parameter:
116             project: '{project}'
117         - string:
118             name: GS_URL
119             default: '$GS_BASE{gs-pathname}'
120             description: "Directory where the build artifact will be located upon the completion of the build."
121         - string:
122             name: GIT_CLONE_BASE
123             default: ssh://gerrit.opnfv.org:29418
124             description: "Used for overriding the GIT URL coming from parameters macro."
125         - string:
126             name: GERRIT_BRANCH
127             default: '{branch}'
128             description: 'Specify the branch in this way in order to be able to use build-opnfv-composite-docs builder.'
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
139