Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 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 | |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 42 | 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 Jouin | c403789 | 2022-11-16 15:53:04 +0100 | [diff] [blame] | 57 | default: 'stateless-lb proxy tapa ipam nsp example-target frontend operator' |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 58 | description: Images to compile |
| 59 | - string: |
| 60 | name: IMAGE_VERSION |
| 61 | default: 'latest' |
| 62 | description: Version of the images |
Lionel Jouin | 5737e07 | 2023-03-21 17:40:21 +0100 | [diff] [blame^] | 63 | - bool: |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 64 | name: E2E_ENABLED |
Lionel Jouin | 5737e07 | 2023-03-21 17:40:21 +0100 | [diff] [blame^] | 65 | default: false |
| 66 | description: Run the e2e tests? |
| 67 | - bool: |
| 68 | name: HELM_CHART_UPLOAD |
| 69 | default: false |
| 70 | description: Upload Helm Charts? |
| 71 | - bool: |
| 72 | name: SECURITY_SCAN_ENABLED |
| 73 | default: false |
| 74 | description: Run the security scan? |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 75 | - string: |
| 76 | name: GIT_PROJECT |
| 77 | default: "https://github.com/Nordix/Meridio.git" |
| 78 | description: Git URL of the project |
| 79 | - string: |
| 80 | name: CURRENT_BRANCH |
| 81 | default: "pr/{ghprb-pull-id}" |
| 82 | description: Current Git branch |
| 83 | - string: |
| 84 | name: DEFAULT_BRANCH |
| 85 | default: "master" |
| 86 | description: default branch |
| 87 | - string: |
| 88 | name: BUILD_STEPS |
| 89 | default: "build" |
| 90 | description: Steps to run during build |
| 91 | - string: |
| 92 | name: IMAGE_REGISTRY |
| 93 | default: 'registry.nordix.org/cloud-native/meridio' |
| 94 | description: Meridio image regsitry |
Lionel Jouin | c403789 | 2022-11-16 15:53:04 +0100 | [diff] [blame] | 95 | - bool: |
| 96 | name: DRY_RUN |
| 97 | default: false |
| 98 | description: Dry Run |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 99 | |
| 100 | # https://opendev.org/jjb/jenkins-job-builder/src/commit/be422af6bb5edc32886a98d78340051f71244c41/jenkins_jobs/modules/triggers.py#L1235 |
| 101 | triggers: |
| 102 | - github-pull-request: |
| 103 | admin-list: |
| 104 | - LionelJouin |
Lionel Jouin | 4b6b6f5 | 2022-10-14 16:22:23 +0200 | [diff] [blame] | 105 | - uablrek |
| 106 | - zolug |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 107 | auth-id: '{ghprb-auth-id}' |
| 108 | github-hooks: true |
| 109 | permit-all: true |
| 110 | no-commit-status: true |
| 111 | trigger-phrase: '/reverify' |
| 112 | only-trigger-phrase: false |
| 113 | cron: 'H/5 * * * *' |
| 114 | |
Lionel Jouin | 85c872e | 2022-08-10 15:08:42 +0200 | [diff] [blame] | 115 | dsl: |
| 116 | !include-raw-escape: Jenkinsfile |