--- ######################################################################### # # Copyright (c) 2018 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: sweetcomb jobs: - 'sweetcomb-verify-{stream}-{os}' - 'sweetcomb-merge-{stream}-{os}' project: 'sweetcomb' os: - ubuntu1604: repo-os-part: 'ubuntu.xenial.main' - centos7: repo-os-part: 'centos7' stream: - master: branch: 'master' repo-stream-part: 'master' - '1901': branch: 'stable/1901' repo-stream-part: 'stable.1901' - project: name: sweetcomb-view views: - project-view project-name: sweetcomb - job-template: name: 'sweetcomb-verify-{stream}-{os}' project-type: freestyle node: '{os}-us' 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}' - os-parameter: os: '{os}' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' - stream-parameter: stream: '{stream}' scm: - gerrit-trigger-scm: credentials-id: 'jenkins-gerrit-credentials' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' wrappers: - fdio-infra-wrappers: build-timeout: 120 triggers: - gerrit-trigger-patch-submitted: name: '{project}' branch: '{branch}' publishers: - fdio-infra-shiplogs: maven-version: 'mvn33-new' - job-template: name: 'sweetcomb-merge-{stream}-{os}' project-type: freestyle node: '{os}-us' 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}' - os-parameter: os: '{os}' - stream-parameter: stream: '{stream}' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' scm: - gerrit-trigger-scm: credentials-id: 'jenkins-gerrit-credentials' refspec: '' choosing-strategy: 'default' 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-sweetcomb-build.sh - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh publishers: - archive: artifacts: > **/build-root/*.rpm, **/build-root/*.deb, allow-empty: 'true' fingerprint: false only-if-success: true default-excludes: false - fdio-infra-shiplogs: maven-version: 'mvn33-new' - naginator: rerun-unstable-builds: false max-failed-builds: 1 fixed-delay: 90