engine: Correct branch names for onap stack
[infra/cicd.git] / jjb / engine / verify-jobs / onap-verify-tox.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: 'onap-tox'
22
23     project: 'onap-tox'
24
25     stream:
26       - 'master':
27           branch: '{stream}'
28           gated-projects: 'infra/stack/onap|infra/installer/oom'
29       - 'frankfurt':
30           branch: '{stream}'
31           gated-projects: 'infra/stack/onap|infra/installer/oom'
32       - 'elalto':
33           branch: '{stream}'
34           gated-projects: 'infra/stack/onap|infra/installer/oom'
35
36     lint-type:
37       - ansible-lint:
38           disabled: false
39           repos-to-ignore: ''
40       - shellcheck:
41           disabled: false
42           repos-to-ignore: ''
43       - yamllint:
44           disabled: false
45           repos-to-ignore: ''
46
47     jobs:
48       - 'onap-verify-tox-{stream}'
49       - 'onap-verify-{lint-type}-{stream}'
50
51 - job-template:
52     name: 'onap-verify-tox-{stream}'
53
54     project-type: multijob
55
56     concurrent: true
57
58     node: infra-tools-docker-slave-ubuntu1804
59
60     parameters:
61       - project-parameters:
62           project: $GERRIT_PROJECT
63           branch: '{branch}'
64           description: 'The project and branch which the change is proposed for'
65       - string:
66           name: VERBOSITY
67           default: 'false'
68           description: 'Verbosity setting for the tox script'
69       - nordix-gerrit-parameters
70
71     properties:
72       - logrotate
73
74     wrappers:
75       - build-timeout:
76           timeout: 60
77       - fix-workspace-permissions
78
79     scm:
80       - git-scm-gerrit:
81           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
82           branch: $GERRIT_BRANCH
83           refspec: $GERRIT_REFSPEC
84           wipe_workspace: true
85           clean_before: false
86
87     triggers:
88       - gerrit:
89           server-name: 'Nordix Gerrit'
90           trigger-on:
91             - patchset-created-event:
92                 exclude-drafts: 'false'
93                 exclude-trivial-rebase: 'false'
94                 exclude-no-code-change: 'false'
95             - draft-published-event
96             - comment-added-contains-event:
97                 comment-contains-value: 'recheck'
98             - comment-added-contains-event:
99                 comment-contains-value: 'reverify'
100           projects:
101             - project-compare-type: 'REG_EXP'
102               project-pattern: '{gated-projects}'
103               branches:
104                 - branch-compare-type: 'ANT'
105                   branch-pattern: '**/{branch}'
106               disable-strict-forbidden-file-verification: 'false'
107               forbidden-file-paths:
108                 - compare-type: ANT
109                   pattern: '.gitignore|.gitreview|.yamllint|README.md|bindep.txt|setup.cfg|setup.py'
110           custom-url: '* $JOB_NAME $BUILD_URL'
111
112     builders:
113       - multijob:
114           name: Static Analysis
115           condition: ALWAYS
116           execution-type: PARALLEL
117           projects:
118             - name: 'onap-verify-ansible-lint-{stream}'
119               current-parameters: true
120               kill-phase-on: NEVER
121               abort-all-job: false
122             - name: 'onap-verify-shellcheck-{stream}'
123               current-parameters: true
124               kill-phase-on: NEVER
125               abort-all-job: false
126             - name: 'onap-verify-yamllint-{stream}'
127               current-parameters: true
128               kill-phase-on: NEVER
129               abort-all-job: false
130
131 - job-template:
132     name: 'onap-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:
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'
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: $GERRIT_BRANCH
162           refspec: $GERRIT_REFSPEC
163           wipe_workspace: true
164           clean_before: false
165
166     builders:
167       - 'tox-macro'
168
169 # vim: set ts=2 sw=2 expandtab: