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