8c4b98f27b7849d7577d43c0a82cc9cbe9a1d571
[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
37     jobs:
38       - 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
39
40 - job-template:
41     name: 'nordix-nsm-meridio-{image-name}-periodic-build-{stream}'
42
43     disabled: '{obj:disabled}'
44
45     concurrent: true
46
47     node: nordix-nsm-build-ubuntu1804
48
49     properties:
50       - github:
51           url: https://github.com/Nordix/Meridio
52
53     parameters:
54       - string:
55           name: GITHUB_ORGANIZATION
56           default: 'Nordix'
57           description: JJB configured parameter to identify GitHub Organization
58       - string:
59           name: PROJECT
60           default: 'meridio'
61           description: JJB configured PROJECT parameter to identify a Nordix GitHub project
62       - string:
63           name: IMAGE_NAME
64           default: '{image-name}'
65           description: Meridio image to verify build
66       - string:
67           name: IMAGE_VERSION
68           default: 'latest'
69           description: Meridio image version to build with
70       - string:
71           name: IMAGE_REGISTRY
72           default: 'registry.nordix.org/cloud-native/$PROJECT'
73           description: Meridio image version to build with
74       - string:
75           name: BUILD_STEPS
76           default: 'build tag push'
77           description: Steps to run during build
78
79     scm:
80       - git:
81           url: 'https://github.com/$PROJECT.git'
82           branches:
83             - master
84           timeout: 15
85           wipe-workspace: true
86
87     triggers:
88       - timed: '@midnight'
89
90     wrappers:
91       - build-timeout:
92           timeout: 10
93       - nordixinfra-harbor-creds-wrapper
94       - mask-passwords
95
96     builders:
97       - shell:
98           !include-raw: ./scripts/build.sh
99
100 # vim: set ts=2 sw=2 expandtab: