--- ######################################################################### # # Copyright (c) 2019 Intel and/or its affiliates. # 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. ######################################################################### - project: name: vsap jobs: - 'vsap-verify-{stream}-{os}-{mode}' - 'vsap-merge-{stream}-{os}-{mode}' project: 'vsap' os: - ubuntu1804: repo-os-part: 'ubuntu.bionic.main' stream: - '2005': branch: 'stable/2005' repo-stream-part: 'stable.2005' mode: - vcl: repo-mode-part: 'vcl' - ldp: repo-mode-part: 'ldp' - project: name: vsap-view views: - project-view project-name: vsap - job-template: name: 'vsap-verify-{stream}-{os}-{mode}' project-type: freestyle node: 'builder-{os}-prod-x86_64' concurrent: true build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: 100 artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' - gerrit-parameter: branch: '{branch}' - gerrit-refspec-parameter - os-parameter: os: '{os}' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}.{repo-mode-part}' - stream-parameter: stream: '{stream}' - mode-parameter: mode: '{mode}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm-recursive: credentials-id: 'jenkins-gerrit-credentials' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' submodule-recursive: true submodule: recursive: true wrappers: - fdio-infra-wrappers: build-timeout: 120 triggers: - gerrit-trigger-patch-submitted: name: '{project}' branch: '{branch}' builders: - shell: !include-raw-escape: - include-raw-vsap-build.sh publishers: - fdio-infra-publish - job-template: name: 'vsap-merge-{stream}-{os}-{mode}' project-type: freestyle node: 'builder-{os}-prod-x86_64' build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: 100 artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' - gerrit-parameter: branch: '{branch}' - gerrit-refspec-parameter - os-parameter: os: '{os}' - stream-parameter: stream: '{stream}' - mode-parameter: mode: '{mode}' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}.{repo-mode-part}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm-recursive: credentials-id: 'jenkins-gerrit-credentials' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' submodule-recursive: true submodule: recursive: true wrappers: - fdio-infra-wrappers: build-timeout: '{build-timeout}' triggers: - gerrit-trigger-patch-merged: name: '{project}' branch: '{branch}' builders: - config-file-provider: files: - file-id: '.packagecloud' target: '/root' - config-file-provider: files: - file-id: 'packagecloud_api' target: '/root' - shell: !include-raw-escape: - include-raw-vsap-build.sh - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh publishers: - fdio-infra-publish - project: name: vsap-info project-name: vsap jobs: - gerrit-info-yaml-verify build-node: centos7-builder-2c-2g project: vsap branch: master - project: name: vsap-sonar project: vsap project-name: vsap mvn-settings: vsap-settings sonarcloud: true sonarcloud-project-organization: '{sonarcloud_project_organization}' sonarcloud-api-token: '{sonarcloud_api_token}' sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' branch: master build-node: centos7-docker-4c-4g jobs: - gerrit-maven-sonar