264bce5ff0edb3c3e473b342c59e23916073c0fd
[infra/cicd.git] / jjb / nsm / nordix-nsm-meridio-periodic.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2021 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: 'nsm-meridio-periodic'
22
23     project: 'nsm-meridio-periodic'
24
25     stream:
26       - 'master':
27           branch: 'master'
28
29     image-name:
30       - ctraffic
31       - ipam
32       - load-balancer
33       - nsp
34       - proxy
35       - target
36       - frontend
37
38     jobs:
39       - 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
40
41 - job-template:
42     name: 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
43
44     disabled: '{obj:disabled}'
45
46     concurrent: true
47
48     node: nordix-nsm-build-ubuntu1804
49
50     properties:
51       - github:
52           url: https://github.com/Nordix/Meridio
53
54     parameters:
55       - string:
56           name: GITHUB_ORGANIZATION
57           default: 'Nordix'
58           description: JJB configured parameter to identify GitHub Organization
59       - string:
60           name: PROJECT
61           default: 'meridio'
62           description: JJB configured PROJECT parameter to identify a Nordix GitHub project
63       - string:
64           name: IMAGE_NAME
65           default: '{image-name}'
66           description: Meridio image to verify build
67       - string:
68           name: IMAGE_VERSION
69           default: 'latest'
70           description: Meridio image version to build with
71       - string:
72           name: IMAGE_REGISTRY
73           default: 'registry.nordix.org/cloud-native/$PROJECT'
74           description: Meridio image version to build with
75       - string:
76           name: BUILD_STEPS
77           default: 'build tag push'
78           description: Steps to run during build
79
80     scm:
81       - git:
82           url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git'
83           branches:
84             - master
85           timeout: 15
86           wipe-workspace: true
87
88     triggers:
89       - pollscm:
90           cron: '@midnight'
91
92     wrappers:
93       - build-timeout:
94           timeout: 30
95       - nordixinfra-harbor-creds-wrapper
96       - mask-passwords
97
98     builders:
99       - shell:
100           !include-raw: ./scripts/build.sh
101
102 # vim: set ts=2 sw=2 expandtab: