engine: Create openstack release jobs
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-docs.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - project:
21     name: 'cloud-infra-docs'
22
23     project: 'cloud-infra-docs'
24
25     stream:
26       - 'master':
27           branch: '{stream}'
28           disabled: true
29
30     jobs:
31       - 'cloud-infra-verify-docs-{stream}'
32       - 'cloud-infra-merge-docs-{stream}'
33
34 - job-template:
35     name: 'cloud-infra-verify-docs-{stream}'
36
37     disabled: '{obj:disabled}'
38
39     concurrent: true
40
41     node: 'infra-tools-docker-slave-ubuntu1804'
42
43     parameters:
44       - project-parameters:
45           project: $GERRIT_PROJECT
46           branch: '{branch}'
47       - nordix-gerrit-parameters
48       - string:
49           name: LINT_TYPE
50           default: 'docs'
51           description: 'Lint type to run'
52
53     properties:
54       - logrotate
55
56     wrappers:
57       - build-timeout:
58           timeout: 150
59       - fix-workspace-permissions
60
61     scm:
62       - git:
63           url: '$GIT_BASE_SSH/$PROJECT'
64           credentials-id: nordixinfra-nordix-gerrit-ssh
65           branches:
66             - 'refs/heads/{branch}'
67           refspec: $GERRIT_REFSPEC
68           timeout: 15
69           per-build-tag: false
70           skip-tag: true
71           shallow-clone: false
72           use-author: false
73           ignore-notify: false
74           wipe-workspace: true
75           prune: false
76           clean:
77             after: false
78             before: false
79           choosing-strategy: 'gerrit'
80           submodule:
81             recursive: true
82             tracking: true
83
84     triggers:
85       - nordix-gerrit-trigger-patchset-created:
86           project: 'infra\/engine|infra\/docs'
87           branch: '{branch}'
88           files: 'docs/**'
89           skip-vote:
90             successful: false
91             failed: false
92             unstable: false
93             notbuilt: false
94           custom-url: '* $JOB_NAME $BUILD_URL'
95
96     builders:
97       - 'cloud-infra-lint-macro'
98
99 - job-template:
100     name: 'cloud-infra-merge-docs-{stream}'
101
102     disabled: '{obj:disabled}'
103
104     concurrent: false
105
106     node: 'infra-docs-build'
107
108     parameters:
109       - project-parameters:
110           project: $GERRIT_PROJECT
111           branch: '{branch}'
112       - nordix-gerrit-parameters
113       - string:
114           name: LINT_TYPE
115           default: 'docs-deploy'
116           description: 'Lint type to run'
117
118     properties:
119       - logrotate
120
121     wrappers:
122       - build-timeout:
123           timeout: 150
124       - fix-workspace-permissions
125
126     scm:
127       - git:
128           url: '$GIT_BASE_SSH/$PROJECT'
129           credentials-id: nordixinfra-nordix-gerrit-ssh
130           branches:
131             - 'refs/heads/{branch}'
132           refspec: ''
133           timeout: 15
134           per-build-tag: false
135           skip-tag: true
136           shallow-clone: false
137           use-author: false
138           ignore-notify: false
139           wipe-workspace: 'true'
140           prune: false
141           clean:
142             after: false
143             before: false
144           choosing-strategy: 'default'
145           submodule:
146             recursive: true
147             tracking: true
148
149     triggers:
150       - nordix-gerrit-trigger-change-merged:
151           project: 'infra\/docs'
152           branch: '{branch}'
153           files: 'docs/**'
154           custom-url: '* $JOB_NAME $BUILD_URL'
155
156     wrappers:
157       - nordixinfra-jjb-creds-wrapper
158
159     builders:
160       - 'cloud-infra-lint-macro'
161
162 # vim: set ts=2 sw=2 expandtab: