clean opnfv/opnfv-docs.yml
[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         - brahmaputra:
20             branch: 'stable/{stream}'
21             gs-pathname: '/{stream}'
22
23 ########################
24 # job templates
25 ########################
26
27 - job-template:
28     name: 'opnfvdocs-verify-{stream}'
29
30     parameters:
31         - project-parameter:
32             project: $GERRIT_PROJECT
33         - gerrit-parameter:
34             branch: '{branch}'
35         - string:
36             name: GIT_CLONE_BASE
37             default: ssh://gerrit.opnfv.org:29418
38             description: "Used for overriding the GIT URL coming from parameters macro."
39
40     scm:
41         - gerrit-trigger-scm:
42             credentials-id: '{ssh-credentials}'
43             refspec: '$GERRIT_REFSPEC'
44             choosing-strategy: 'gerrit'
45
46     triggers:
47         - gerrit:
48             trigger-on:
49                 - patchset-created-event:
50                     exclude-drafts: 'false'
51                     exclude-trivial-rebase: 'false'
52                     exclude-no-code-change: 'false'
53                 - draft-published-event
54                 - comment-added-contains-event:
55                     comment-contains-value: 'recheck'
56                 - comment-added-contains-event:
57                     comment-contains-value: 'reverify'
58             projects:
59               - project-compare-type: 'REG_EXP'
60                 project-pattern: '{project}'
61                 branches:
62                   - branch-compare-type: 'ANT'
63                     branch-pattern: '**/{branch}'
64
65     builders:
66         - check-bash-syntax
67
68 - job-template:
69     name: 'opnfvdocs-merge-{stream}'
70
71     parameters:
72         - project-parameter:
73             project: $GERRIT_PROJECT
74         - gerrit-parameter:
75             branch: '{branch}'
76         - string:
77             name: GIT_CLONE_BASE
78             default: ssh://gerrit.opnfv.org:29418
79             description: "Used for overriding the GIT URL coming from parameters macro."
80         - string:
81             name: GS_URL
82             default: '$GS_BASE{gs-pathname}'
83             description: "Directory where the build artifact will be located upon the completion of the build."
84
85     scm:
86         - gerrit-trigger-scm:
87             credentials-id: '{ssh-credentials}'
88             refspec: '$GERRIT_REFSPEC'
89             choosing-strategy: 'gerrit'
90
91     triggers:
92         - gerrit:
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         - string:
116             name: GS_URL
117             default: '$GS_BASE{gs-pathname}'
118             description: "Directory where the build artifact will be located upon the completion of the build."
119         - string:
120             name: GIT_CLONE_BASE
121             default: ssh://gerrit.opnfv.org:29418
122             description: "Used for overriding the GIT URL coming from parameters macro."
123         - string:
124             name: GERRIT_BRANCH
125             default: '{branch}'
126             description: 'Specify the branch in this way in order to be able to use build-opnfv-composite-docs builder.'
127
128     scm:
129         - git-scm:
130             credentials-id: '{ssh-credentials}'
131             refspec: ''
132             branch: '{branch}'
133
134     triggers:
135         - timed: '0 H/6 * * *'
136
137     builders:
138         - build-html-and-pdf-docs-output
139 #        - upload-generated-docs-to-opnfv-artifacts
140