Fatih Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 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 |
Fatih Degirmenci | 3c39066 | 2019-12-16 10:24:55 +0100 | [diff] [blame] | 29 | |
| 30 | lint-type: |
Fatih Degirmenci | 24834fe | 2020-01-08 18:52:01 +0100 | [diff] [blame^] | 31 | - ansible-lint |
| 32 | - yamllint |
| 33 | - shellcheck |
Fatih Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 34 | |
Fatih Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 35 | 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 Degirmenci | 24834fe | 2020-01-08 18:52:01 +0100 | [diff] [blame^] | 52 | - string: |
| 53 | name: LINT_TYPE |
| 54 | default: '{lint-type}' |
| 55 | description: 'Lint type to run' |
Fatih Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 56 | |
| 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 Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 95 | custom-url: '* $JOB_NAME $BUILD_URL' |
| 96 | |
| 97 | builders: |
Fatih Degirmenci | 24834fe | 2020-01-08 18:52:01 +0100 | [diff] [blame^] | 98 | - 'cloud-infra-lint-macro' |
Fatih Degirmenci | 0efc1c9 | 2019-12-03 18:18:09 +0100 | [diff] [blame] | 99 | |
| 100 | # vim: set ts=2 sw=2 expandtab: |