blob: e766c01737f1906cf52fe285d66c0d3889143912 [file] [log] [blame]
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +01001---
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
Fatih Degirmenci3c390662019-12-16 10:24:55 +010029
30 lint-type:
Fatih Degirmenci24834fe2020-01-08 18:52:01 +010031 - ansible-lint
32 - yamllint
33 - shellcheck
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +010034
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +010035 jobs:
36 - 'cloud-infra-verify-engine-{lint-type}-{stream}'
37
38- job-template:
39 name: 'cloud-infra-verify-engine-{lint-type}-{stream}'
40
41 disabled: '{obj:disabled}'
42
43 concurrent: true
44
45 node: infra-ubuntu1804
46
47 parameters:
48 - project-parameters:
49 project: '{project}'
50 branch: '{branch}'
51 - nordix-gerrit-parameters
Fatih Degirmenci24834fe2020-01-08 18:52:01 +010052 - string:
53 name: LINT_TYPE
54 default: '{lint-type}'
55 description: 'Lint type to run'
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +010056
57 properties:
58 - logrotate
59
60 wrappers:
61 - build-timeout:
62 timeout: 150
63 - fix-workspace-permissions
64
65 scm:
66 - git-scm-gerrit:
67 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
68 branch: '{branch}'
69 refspec: $GERRIT_REFSPEC
70 wipe_workspace: true
71 clean_before: false
72
73 triggers:
74 - gerrit:
75 server-name: 'Nordix Gerrit'
76 trigger-on:
77 - patchset-created-event:
78 exclude-drafts: 'false'
79 exclude-trivial-rebase: 'false'
80 exclude-no-code-change: 'false'
81 - draft-published-event
82 - comment-added-contains-event:
83 comment-contains-value: 'recheck'
84 - comment-added-contains-event:
85 comment-contains-value: 'reverify'
86 projects:
87 - project-compare-type: 'REG_EXP'
88 project-pattern: 'infra\/engine'
89 branches:
90 - branch-compare-type: 'ANT'
91 branch-pattern: '**/{branch}'
92 file-paths:
93 - compare-type: 'ANT'
94 pattern: '**'
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +010095 custom-url: '* $JOB_NAME $BUILD_URL'
96
97 builders:
Fatih Degirmenci24834fe2020-01-08 18:52:01 +010098 - 'cloud-infra-lint-macro'
Fatih Degirmenci0efc1c92019-12-03 18:18:09 +010099
100# vim: set ts=2 sw=2 expandtab: