Set Node to Meridio jobs
[infra/cicd.git] / jjb / nsm / meridio-pull-request.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: 'meridio-pull-request'
22
23     project: 'meridio-pull-request'
24
25     # NOTE (fdegir): auth-id is taken from Jenkins Global Configuration
26     # by clicking Auth ID button for the desired GitHub Server API URL
27     # Please ensure you are looking at GitHub Pull Request Builder part
28     # of global configuration and not to GitHub Server configuration
29     ghprb-auth-id: 'cdfd2452-a9e2-41a3-8ee6-9058512b4aff'
30     ghprb-pull-id: ${{ghprbPullId}}
31
32     jobs:
33       - 'meridio-pull-request'
34
35 - job-template:
36     name: 'meridio-pull-request'
37     project-type: pipeline
38     disabled: '{obj:disabled}'
39
40     concurrent: true
41
42     node: nordix-nsm-build-ubuntu1804
43
44     properties:
45       - github:
46           url: https://github.com/Nordix/Meridio
47
48     parameters:
49       - string:
50           name: GITHUB_ORGANIZATION
51           default: 'Nordix'
52           description: JJB configured parameter to identify GitHub Organization
53       - string:
54           name: PROJECT
55           default: 'Meridio'
56           description: JJB configured PROJECT parameter to identify a Nordix GitHub project
57       - string:
58           name: IMAGE_NAMES
59           default: 'load-balancer proxy tapa ipam nsp ctraffic frontend'
60           description: Images to compile
61       - string:
62           name: IMAGE_VERSION
63           default: 'latest'
64           description: Version of the images
65       - string:
66           name: E2E_ENABLED
67           default: "false"
68           description: Is E2E Tests enabled?
69       - string:
70           name: GIT_PROJECT
71           default: "https://github.com/Nordix/Meridio.git"
72           description: Git URL of the project
73       - string:
74           name: CURRENT_BRANCH
75           default: "pr/{ghprb-pull-id}"
76           description: Current Git branch
77       - string:
78           name: DEFAULT_BRANCH
79           default: "master"
80           description: default branch
81       - string:
82           name: BUILD_STEPS
83           default: "build"
84           description: Steps to run during build
85       - string:
86           name: IMAGE_REGISTRY
87           default: 'registry.nordix.org/cloud-native/meridio'
88           description: Meridio image regsitry
89
90     # https://opendev.org/jjb/jenkins-job-builder/src/commit/be422af6bb5edc32886a98d78340051f71244c41/jenkins_jobs/modules/triggers.py#L1235
91     triggers:
92       - github-pull-request:
93           admin-list:
94             - LionelJouin
95           auth-id: '{ghprb-auth-id}'
96           github-hooks: true
97           permit-all: true
98           no-commit-status: true
99           trigger-phrase: '/reverify'
100           only-trigger-phrase: false
101           cron: 'H/5 * * * *'
102
103     dsl: 
104       !include-raw-escape: Jenkinsfile