blob: 9dd3301cfb937cdd6c27992909dc8c78ec771f25 [file] [log] [blame]
Lionel Jouin85c872e2022-08-10 15:08:42 +02001---
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
Lionel Jouin85c872e2022-08-10 15:08:42 +020042 properties:
43 - github:
44 url: https://github.com/Nordix/Meridio
45
46 parameters:
47 - string:
48 name: GITHUB_ORGANIZATION
49 default: 'Nordix'
50 description: JJB configured parameter to identify GitHub Organization
51 - string:
52 name: PROJECT
53 default: 'Meridio'
54 description: JJB configured PROJECT parameter to identify a Nordix GitHub project
55 - string:
56 name: IMAGE_NAMES
Lionel Jouinc4037892022-11-16 15:53:04 +010057 default: 'stateless-lb proxy tapa ipam nsp example-target frontend operator'
Lionel Jouin85c872e2022-08-10 15:08:42 +020058 description: Images to compile
59 - string:
60 name: IMAGE_VERSION
61 default: 'latest'
62 description: Version of the images
63 - string:
64 name: E2E_ENABLED
65 default: "false"
66 description: Is E2E Tests enabled?
67 - string:
68 name: GIT_PROJECT
69 default: "https://github.com/Nordix/Meridio.git"
70 description: Git URL of the project
71 - string:
72 name: CURRENT_BRANCH
73 default: "pr/{ghprb-pull-id}"
74 description: Current Git branch
75 - string:
76 name: DEFAULT_BRANCH
77 default: "master"
78 description: default branch
79 - string:
80 name: BUILD_STEPS
81 default: "build"
82 description: Steps to run during build
83 - string:
84 name: IMAGE_REGISTRY
85 default: 'registry.nordix.org/cloud-native/meridio'
86 description: Meridio image regsitry
Lionel Jouinc4037892022-11-16 15:53:04 +010087 - bool:
88 name: DRY_RUN
89 default: false
90 description: Dry Run
Lionel Jouin85c872e2022-08-10 15:08:42 +020091
92 # https://opendev.org/jjb/jenkins-job-builder/src/commit/be422af6bb5edc32886a98d78340051f71244c41/jenkins_jobs/modules/triggers.py#L1235
93 triggers:
94 - github-pull-request:
95 admin-list:
96 - LionelJouin
Lionel Jouin4b6b6f52022-10-14 16:22:23 +020097 - uablrek
98 - zolug
Lionel Jouin85c872e2022-08-10 15:08:42 +020099 auth-id: '{ghprb-auth-id}'
100 github-hooks: true
101 permit-all: true
102 no-commit-status: true
103 trigger-phrase: '/reverify'
104 only-trigger-phrase: false
105 cron: 'H/5 * * * *'
106
Lionel Jouin85c872e2022-08-10 15:08:42 +0200107 dsl:
108 !include-raw-escape: Jenkinsfile