blob: ad556d0c449a4e5cf4990d83dc970dd13d6c0256 [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
57 default: 'load-balancer proxy tapa ipam nsp ctraffic frontend'
58 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
87
88 # https://opendev.org/jjb/jenkins-job-builder/src/commit/be422af6bb5edc32886a98d78340051f71244c41/jenkins_jobs/modules/triggers.py#L1235
89 triggers:
90 - github-pull-request:
91 admin-list:
92 - LionelJouin
93 auth-id: '{ghprb-auth-id}'
94 github-hooks: true
95 permit-all: true
96 no-commit-status: true
97 trigger-phrase: '/reverify'
98 only-trigger-phrase: false
99 cron: 'H/5 * * * *'
100
Lionel Jouin73a52bd2022-09-09 11:27:35 +0200101 wrappers:
102 - build-timeout:
103 timeout: 30
104 - nordixinfra-harbor-creds-wrapper
105 - mask-passwords
106
Lionel Jouin85c872e2022-08-10 15:08:42 +0200107 dsl:
108 !include-raw-escape: Jenkinsfile