--- # ============LICENSE_START======================================================= # Copyright (C) 2021 Nordix Foundation. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= - project: name: 'nsm-meridio-verify' project: 'nsm-meridio-verify' stream: - 'master': branch: '${{ghprbActualCommit}}' # NOTE (fdegir): auth-id is taken from Jenkins Global Configuration # by clicking Auth ID button for the desired GitHub Server API URL # Please ensure you are looking at GitHub Pull Request Builder part # of global configuration and not to GitHub Server configuration ghprb-auth-id: 'cdfd2452-a9e2-41a3-8ee6-9058512b4aff' image-name: - ctraffic - ipam - load-balancer - nsp - proxy - target jobs: - 'nordix-nsm-meridio-verify-static-analysis-{stream}' - 'nordix-nsm-meridio-{image-name}-verify-build-{stream}' - job-template: name: 'nordix-nsm-meridio-verify-static-analysis-{stream}' disabled: '{obj:disabled}' concurrent: true node: nordix-nsm-build-ubuntu1804 properties: - github: url: https://github.com/Nordix/Meridio parameters: - string: name: GITHUB_ORGANIZATION default: 'Nordix' description: JJB configured parameter to identify GitHub Organization - string: name: PROJECT default: 'meridio' description: JJB configured PROJECT parameter to identify a Nordix GitHub project scm: - git: url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git' branches: - '{branch}' refspec: '+refs/pull/*:refs/remotes/origin/pr/*' timeout: 15 wipe-workspace: true choosing-strategy: 'default' clean_before: false triggers: - github-pull-request: admin-list: - nordixinfra - uablrek - LionelJouin - fdegir auth-id: '{ghprb-auth-id}' github-hooks: true permit-all: true trigger-phrase: '/reverify' only-trigger-phrase: false cron: 'H/5 * * * *' status-context: 'Nordix Jenkins Static Analysis' builders: - shell: !include-raw: ./scripts/static-analysis.sh - job-template: name: 'nordix-nsm-meridio-{image-name}-verify-build-{stream}' disabled: '{obj:disabled}' concurrent: true node: nordix-nsm-build-ubuntu1804 properties: - github: url: https://github.com/Nordix/Meridio parameters: - string: name: GITHUB_ORGANIZATION default: 'Nordix' description: JJB configured parameter to identify GitHub Organization - string: name: PROJECT default: 'meridio' description: JJB configured PROJECT parameter to identify a Nordix GitHub project - string: name: IMAGE_NAME default: '{image-name}' description: Meridio image to verify build - string: name: IMAGE_VERSION default: 'dev' description: Meridio image version to build with - string: name: IMAGE_REGISTRY default: 'registry.nordix.org/cloud-native/$PROJECT' description: Meridio image version to build with - string: name: BUILD_STEPS default: 'build tag' description: Steps to run during build scm: - git: url: 'https://github.com/$GITHUB_ORGANIZATION/$PROJECT.git' branches: - '{branch}' refspec: '+refs/pull/*:refs/remotes/origin/pr/*' timeout: 15 wipe-workspace: true choosing-strategy: 'default' clean_before: false triggers: - github-pull-request: admin-list: - nordixinfra - uablrek - LionelJouin - fdegir auth-id: '{ghprb-auth-id}' github-hooks: true permit-all: true trigger-phrase: '/reverify' only-trigger-phrase: false cron: 'H/5 * * * *' status-context: 'Nordix Jenkins Image Build: {image-name}' wrappers: - build-timeout: timeout: 10 - nordixinfra-harbor-creds-wrapper - mask-passwords builders: - shell: !include-raw: ./scripts/build.sh # vim: set ts=2 sw=2 expandtab: