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