Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +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: 'engine-tox' |
| 22 | |
| 23 | project: 'engine-tox' |
| 24 | |
| 25 | stream: |
| 26 | - 'master': |
| 27 | branch: '{stream}' |
| 28 | |
| 29 | lint-type: |
| 30 | - ansible-lint: |
| 31 | disabled: false |
| 32 | repos-to-ignore: 'infra/hwconfig' |
| 33 | - docs: |
| 34 | disabled: false |
| 35 | repos-to-ignore: 'infra/hwconfig|infra/swconfig|infra/test' |
| 36 | - shellcheck: |
| 37 | disabled: false |
| 38 | repos-to-ignore: 'infra/hwconfig' |
| 39 | - yamllint: |
| 40 | disabled: false |
| 41 | repos-to-ignore: '' |
| 42 | |
| 43 | jobs: |
| 44 | - 'engine-verify-tox-{stream}' |
| 45 | - 'engine-verify-{lint-type}-{stream}' |
| 46 | |
| 47 | - job-template: |
| 48 | name: 'engine-verify-tox-{stream}' |
| 49 | |
| 50 | project-type: multijob |
| 51 | |
| 52 | concurrent: true |
| 53 | |
| 54 | node: infra-tools-docker-slave-ubuntu1804 |
| 55 | |
| 56 | parameters: |
| 57 | - project-parameters: |
| 58 | project: $GERRIT_PROJECT |
| 59 | branch: '{branch}' |
| 60 | description: 'The project and branch which the change is proposed for' |
| 61 | - string: |
| 62 | name: VERBOSITY |
| 63 | default: 'false' |
| 64 | description: 'Verbosity setting for the tox script' |
| 65 | - nordix-gerrit-parameters |
| 66 | |
| 67 | properties: |
| 68 | - logrotate |
| 69 | |
| 70 | wrappers: |
| 71 | - build-timeout: |
| 72 | timeout: 60 |
| 73 | - fix-workspace-permissions |
| 74 | |
| 75 | scm: |
| 76 | - git-scm-gerrit: |
| 77 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 78 | branch: '{branch}' |
| 79 | refspec: $GERRIT_REFSPEC |
| 80 | wipe_workspace: true |
| 81 | clean_before: false |
| 82 | |
| 83 | triggers: |
| 84 | - gerrit: |
| 85 | server-name: 'Nordix Gerrit' |
| 86 | trigger-on: |
| 87 | - patchset-created-event: |
| 88 | exclude-drafts: 'false' |
| 89 | exclude-trivial-rebase: 'false' |
| 90 | exclude-no-code-change: 'false' |
| 91 | - draft-published-event |
| 92 | - comment-added-contains-event: |
| 93 | comment-contains-value: 'recheck' |
| 94 | - comment-added-contains-event: |
| 95 | comment-contains-value: 'reverify' |
| 96 | projects: |
| 97 | - project-compare-type: 'REG_EXP' |
| 98 | project-pattern: 'infra\/engine|infra\/test|infra\/swconfig|infra\/hwconfig' |
| 99 | branches: |
| 100 | - branch-compare-type: 'ANT' |
| 101 | branch-pattern: '**/{branch}' |
| 102 | disable-strict-forbidden-file-verification: 'false' |
| 103 | forbidden-file-paths: |
| 104 | - compare-type: ANT |
| 105 | pattern: '.gitignore|.gitreview|.yamllint|README.md|bindep.txt|setup.cfg|setup.py' |
| 106 | custom-url: '* $JOB_NAME $BUILD_URL' |
| 107 | |
| 108 | builders: |
| 109 | - multijob: |
Fatih Degirmenci | 9714e3e | 2020-03-12 13:09:19 +0000 | [diff] [blame] | 110 | name: Engine Lint |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 111 | condition: ALWAYS |
Fatih Degirmenci | 9714e3e | 2020-03-12 13:09:19 +0000 | [diff] [blame] | 112 | execution-type: PARALLEL |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 113 | projects: |
| 114 | - name: 'engine-verify-ansible-lint-{stream}' |
| 115 | current-parameters: true |
| 116 | kill-phase-on: NEVER |
| 117 | abort-all-job: false |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 118 | - name: 'engine-verify-shellcheck-{stream}' |
| 119 | current-parameters: true |
| 120 | kill-phase-on: NEVER |
| 121 | abort-all-job: false |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 122 | - name: 'engine-verify-yamllint-{stream}' |
| 123 | current-parameters: true |
| 124 | kill-phase-on: NEVER |
| 125 | abort-all-job: false |
Fatih Degirmenci | 072f94d | 2020-03-12 09:21:37 +0000 | [diff] [blame] | 126 | - name: 'engine-verify-docs-{stream}' |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 127 | current-parameters: true |
| 128 | kill-phase-on: NEVER |
| 129 | abort-all-job: false |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 130 | |
| 131 | - job-template: |
| 132 | name: 'engine-verify-{lint-type}-{stream}' |
| 133 | |
| 134 | disabled: '{obj:disabled}' |
| 135 | |
| 136 | concurrent: true |
| 137 | |
| 138 | node: infra-tools-docker-slave-ubuntu1804 |
| 139 | |
| 140 | parameters: |
| 141 | - string: |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 142 | name: LINT_TYPE |
| 143 | default: '{lint-type}' |
| 144 | description: 'Lint type to run' |
| 145 | - string: |
| 146 | name: REPOS_TO_IGNORE |
| 147 | default: '{repos-to-ignore}' |
| 148 | description: 'Repos to ignore for the specific lint type' |
Fatih Degirmenci | 44122b3 | 2020-03-11 13:03:25 +0100 | [diff] [blame] | 149 | |
| 150 | properties: |
| 151 | - logrotate |
| 152 | |
| 153 | wrappers: |
| 154 | - build-timeout: |
| 155 | timeout: 150 |
| 156 | - fix-workspace-permissions |
| 157 | |
| 158 | scm: |
| 159 | - git-scm-gerrit: |
| 160 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 161 | branch: '{branch}' |
| 162 | refspec: $GERRIT_REFSPEC |
| 163 | wipe_workspace: true |
| 164 | clean_before: false |
| 165 | |
| 166 | builders: |
| 167 | - 'engine-verify-tox-macro' |
| 168 | |
| 169 | # vim: set ts=2 sw=2 expandtab: |