01f3c42ef6112dadc7bd40b7ca71e937e89c337d
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-engine-verify-lint.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-lint'
22
23     project: 'infra/engine'
24
25     stream:
26       - 'master':
27           branch: '{stream}'
28           disabled: false
29
30     lint-type:
31       - ansible-lint:
32           successful: false
33           failed: false
34           unstable: false
35           notbuilt: false
36       - yaml-lint:
37           successful: true
38           failed: true
39           unstable: true
40           notbuilt: true
41       - shellcheck:
42           successful: true
43           failed: true
44           unstable: true
45           notbuilt: true
46
47     jobs:
48       - 'cloud-infra-verify-engine-{lint-type}-{stream}'
49
50 - job-template:
51     name: 'cloud-infra-verify-engine-{lint-type}-{stream}'
52
53     disabled: '{obj:disabled}'
54
55     concurrent: true
56
57     node: infra-ubuntu1804
58
59     parameters:
60       - project-parameters:
61           project: '{project}'
62           branch: '{branch}'
63       - nordix-gerrit-parameters
64
65     properties:
66       - logrotate
67
68     wrappers:
69       - build-timeout:
70           timeout: 150
71       - fix-workspace-permissions
72
73     scm:
74       - git-scm-gerrit:
75           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
76           branch: '{branch}'
77           refspec: $GERRIT_REFSPEC
78           wipe_workspace: true
79           clean_before: false
80
81     triggers:
82       - gerrit:
83           server-name: 'Nordix Gerrit'
84           trigger-on:
85             - patchset-created-event:
86                 exclude-drafts: 'false'
87                 exclude-trivial-rebase: 'false'
88                 exclude-no-code-change: 'false'
89             - draft-published-event
90             - comment-added-contains-event:
91                 comment-contains-value: 'recheck'
92             - comment-added-contains-event:
93                 comment-contains-value: 'reverify'
94           projects:
95             - project-compare-type: 'REG_EXP'
96               project-pattern: 'infra\/engine'
97               branches:
98                 - branch-compare-type: 'ANT'
99                   branch-pattern: '**/{branch}'
100               file-paths:
101                 - compare-type: 'ANT'
102                   pattern: '**'
103           skip-vote:
104             successful: '{obj:successful}'
105             failed: '{obj:failed}'
106             unstable: '{obj:unstable}'
107             notbuilt: '{obj:notbuilt}'
108           custom-url: '* $JOB_NAME $BUILD_URL'
109
110     builders:
111       - 'cloud-infra-{lint-type}-macro'
112
113 # vim: set ts=2 sw=2 expandtab: