# Copyright (c) 2020 Cisco 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: cicn-libparc-x86_64 jobs: - "cicn-libparc-verify-{stream}-{os}-{executor-arch}" - "cicn-libparc-merge-{stream}-{os}-{executor-arch}" project: "cicn" os: - ubuntu1804 - ubuntu2004 - centos8 executor-arch: "x86_64" stream: - master: branch: "cframework/master" type: - short - long - project: name: cicn-libparc-aarch64 jobs: - "cicn-libparc-verify-{stream}-{os}-{executor-arch}" - "cicn-libparc-merge-{stream}-{os}-{executor-arch}" project: "cicn" os: - ubuntu1804 - ubuntu2004 executor-arch: "aarch64" stream: - master: branch: "cframework/master" type: - short - long - project: name: cicn-viper jobs: - "cicn-viper-verify-{stream}-{os}-{executor-arch}" - "cicn-viper-merge-{stream}-{os}-{executor-arch}" project: "cicn" os: ubuntu1804 executor-arch: "x86_64" stream: - master: branch: "viper/master" type: - short - long - job-template: name: "cicn-libparc-merge-{stream}-{os}-{executor-arch}" project-type: freestyle node: "builder-{os}-prod-{executor-arch}" properties: - lf-infra-properties: build-days-to-keep: "{build-days-to-keep}" parameters: - project-parameter: project: "{project}" - gerrit-parameter: branch: "{branch}" - os-parameter: os: "{os}" - stream-parameter: stream: "hicn" 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/.packagecloud" - config-file-provider: files: - file-id: "packagecloud_api" target: "/root/packagecloud_api" - shell: !include-raw-escape: - ../scripts/setup_executor_env.sh - shell: !include-raw-escape: - ../scripts/cicn/build-libparc.sh - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh publishers: - fdio-infra-publish - job-template: name: "cicn-libparc-verify-{stream}-{os}-{executor-arch}" project-type: freestyle node: "builder-{os}-prod-{executor-arch}" concurrent: true properties: - lf-infra-properties: build-days-to-keep: "{build-days-to-keep}" parameters: - project-parameter: project: "{project}" - gerrit-parameter: branch: "{branch}" - os-parameter: os: "{os}" scm: - gerrit-trigger-scm: credentials-id: "jenkins-gerrit-credentials" refspec: "$GERRIT_REFSPEC" choosing-strategy: "gerrit" wrappers: - fdio-infra-wrappers: build-timeout: "{build-timeout}" triggers: - gerrit-trigger-patch-submitted: name: "{project}" branch: "{branch}" builders: - shell: !include-raw-escape: - ../scripts/setup_executor_env.sh - shell: !include-raw-escape: - ../scripts/cicn/build-libparc.sh publishers: - fdio-infra-publish - job-template: name: "cicn-viper-merge-{stream}-{os}-{executor-arch}" project-type: freestyle node: "builder-{os}-prod-{executor-arch}" properties: - lf-infra-properties: build-days-to-keep: "{build-days-to-keep}" parameters: - project-parameter: project: "{project}" - gerrit-parameter: branch: "{branch}" - os-parameter: os: "{os}" - stream-parameter: stream: "hicn" 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}" - reverse: jobs: "cicn-libicnet-merge-{stream}-{os}" result: "failure" builders: - config-file-provider: files: - file-id: ".packagecloud" target: "/root/.packagecloud" - config-file-provider: files: - file-id: "packagecloud_api" target: "/root/packagecloud_api" - shell: !include-raw-escape: - ../scripts/setup_executor_env.sh - shell: !include-raw-escape: - ../scripts/cicn/build-viper.sh - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh publishers: - fdio-infra-publish - job-template: name: "cicn-viper-verify-{stream}-{os}-{executor-arch}" project-type: freestyle node: "builder-{os}-prod-{executor-arch}" concurrent: true properties: - lf-infra-properties: build-days-to-keep: "{build-days-to-keep}" parameters: - project-parameter: project: "{project}" - gerrit-parameter: branch: "{branch}" - os-parameter: os: "{os}" scm: - gerrit-trigger-scm: credentials-id: "jenkins-gerrit-credentials" refspec: "$GERRIT_REFSPEC" choosing-strategy: "gerrit" wrappers: - fdio-infra-wrappers: build-timeout: "{build-timeout}" triggers: - gerrit-trigger-patch-submitted: name: "{project}" branch: "{branch}" builders: - shell: !include-raw-escape: - ../scripts/setup_executor_env.sh - shell: !include-raw-escape: - ../scripts/cicn/build-viper.sh publishers: - fdio-infra-publish - project: name: cicn-info project-name: cicn jobs: - gerrit-info-yaml-verify build-node: centos7-builder-2c-2g project: cicn branch: master - project: name: cicn-sonar project: cicn project-name: cicn mvn-settings: cicn-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-builder-2c-2g jobs: - gerrit-maven-sonar