ee9c614d016b134a277196414dcbe8b65fa1648b
[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: false
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-scm-gerrit:
63           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
64           branch: '{branch}'
65           refspec: $GERRIT_REFSPEC
66           wipe_workspace: true
67           clean_before: false
68
69     triggers:
70       - gerrit:
71           server-name: 'Nordix Gerrit'
72           trigger-on:
73             - patchset-created-event:
74                 exclude-drafts: 'false'
75                 exclude-trivial-rebase: 'false'
76                 exclude-no-code-change: 'false'
77             - draft-published-event
78             - comment-added-contains-event:
79                 comment-contains-value: 'recheck'
80             - comment-added-contains-event:
81                 comment-contains-value: 'reverify'
82           projects:
83             - project-compare-type: 'REG_EXP'
84               project-pattern: 'infra\/engine|infra\/docs'
85               branches:
86                 - branch-compare-type: 'ANT'
87                   branch-pattern: '**/{branch}'
88               disable-strict-forbidden-file-verification: 'false'
89               file-paths:
90                 - compare-type: ANT
91                   pattern: 'docs/'
92           custom-url: '* $JOB_NAME $BUILD_URL'
93
94     builders:
95       - 'cloud-infra-lint-macro'
96
97 - job-template:
98     name: 'cloud-infra-merge-docs-{stream}'
99
100     disabled: '{obj:disabled}'
101
102     concurrent: false
103
104     node: 'infra-docs-build'
105
106     parameters:
107       - project-parameters:
108           project: $GERRIT_PROJECT
109           branch: '{branch}'
110       - nordix-gerrit-parameters
111       - string:
112           name: LINT_TYPE
113           default: 'docs-deploy'
114           description: 'Lint type to run'
115
116     properties:
117       - logrotate
118
119     wrappers:
120       - build-timeout:
121           timeout: 150
122       - fix-workspace-permissions
123
124     scm:
125       - git-scm:
126           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
127           branch: '{branch}'
128           refspec: ''
129           wipe_workspace: true
130           clean_before: false
131
132     triggers:
133       - nordix-gerrit-trigger-change-merged:
134           project: 'infra\/docs'
135           branch: '{branch}'
136           files: 'docs/**'
137
138     wrappers:
139       - nordixinfra-jjb-creds-wrapper
140
141     builders:
142       - 'cloud-infra-lint-macro'
143
144 # vim: set ts=2 sw=2 expandtab: