Add verify job for nolabs app
[infra/cicd.git] / jjb / nolabs / nolabs-jobs.yaml
1 ---
2 #
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21 - project:
22     name: 'nolabs'
23
24     project: 'infra/engine'
25
26     stream:
27       - 'master':
28           branch: '{stream}'
29
30     jobs:
31       - 'nolabs-verify-{stream}'
32
33 - job-template:
34     name: 'nolabs-verify-{stream}'
35
36     concurrent: false
37
38     parameters:
39       - project-parameters:
40           project: '{project}'
41           branch: '{branch}'
42       - nordix-gerrit-parameters
43       - label:
44           name: SLAVE_LABEL
45           default: 'nolabs'
46           description: 'Slave label to schedule this job on.'
47
48     properties:
49       - logrotate
50       - build-blocker:
51           use-build-blocker: true
52           blocking-jobs:
53             - 'nolabs-.*'
54           block-level: 'NODE'
55       - throttle:
56           max-per-node: 1
57           max-total: 1
58           option: project
59
60     wrappers:
61       - build-timeout:
62           timeout: 10
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: 'nolabs'
89               branches:
90                 - branch-compare-type: 'ANT'
91                   branch-pattern: '**/{branch}'
92               file-paths:
93                 - compare-type: 'ANT'
94                   pattern: '**'
95
96     builders:
97       - shell:
98           !include-raw-escape: ./verify-build.sh
99
100 # vim: set ts=2 sw=2 expandtab: