+++ /dev/null
-# Copyright (c) 2021 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: hicn-x86_64
- jobs:
- - "hicn-verify-build-{stream}-{os}-{executor-arch}"
- - "hicn-verify-functest-{stream}-{os}-{executor-arch}"
- - "hicn-merge-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "x86_64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
-
-- project:
- name: hicn-aarch64
- jobs:
- - "hicn-verify-build-{stream}-{os}-{executor-arch}"
- - "hicn-merge-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "aarch64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
-
-- project:
- name: hicn-misc
- jobs:
- - "hicn-checkstyle-verify-{stream}-{os}-{executor-arch}"
- project: "hicn"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
- os: ubuntu2004
- executor-arch: "x86_64"
-
-- project:
- name: hicn-extras-x86_64
- jobs:
- - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
- - "hicn-extras-build-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "x86_64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
-
-- project:
- name: hicn-extras-aarch64
- jobs:
- - "hicn-extras-verify-{stream}-{os}-{executor-arch}"
- - "hicn-extras-build-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "aarch64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
-
-- project:
- name: hicn-vpp-latest-x86_64
- jobs:
- - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "x86_64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
-
-- project:
- name: hicn-vpp-latest-aarch64
- jobs:
- - "hicn-vpp-latest-verify-{stream}-{os}-{executor-arch}"
- project: "hicn"
- os: ubuntu2004
- executor-arch: "aarch64"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
-
-- project:
- name: hicn-view
- views:
- - project-view
- project-name: hicn
-
-- project:
- name: hicn-sonar
- jobs:
- - "hicn-sonar-scanner-{stream}"
- project: hicn
- sonarcloud: true
- sonarcloud-project-organization: "{sonarcloud_project_organization}"
- sonarcloud-api-token: "{sonarcloud_api_token}"
- sonarcloud-project-key: "{sonarcloud_project_organization}-{project}"
- stream:
- - "master":
- branch: "master"
- repo: "hicn"
- - "2210":
- branch: "stable/2210"
- repo: "2210"
-
-- job-template:
- name: "hicn-sonar-scanner-{stream}"
-
- project-type: freestyle
- node: centos7-docker-4c-4g
- concurrent: true
-
- parameters:
- - project-parameter:
- project: "{project}"
- - gerrit-parameter:
- branch: "{branch}"
- - stream-parameter:
- stream: "{repo}"
-
- 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:
- - inject:
- properties-content: |
- SONAR_HOST_URL=https://sonarcloud.io
- PROJECT_KEY={sonarcloud-project-key}
- PROJECT_ORGANIZATION={sonarcloud-project-organization}
- API_TOKEN={sonarcloud-api-token}
- - shell: !include-raw-escape:
- - ../scripts/hicn/sonar.sh
-
-- job-template:
- name: "hicn-checkstyle-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:
- server-name: "Primary"
- trigger-on:
- - patchset-created-event:
- exclude-drafts: "true"
- exclude-trivial-rebase: "false"
- exclude-no-code-change: "true"
- - draft-published-event
- - comment-added-contains-event:
- comment-contains-value: "checkstylecheck"
- - comment-added-contains-event:
- comment-contains-value: "docsonly"
- - comment-added-contains-event:
- comment-contains-value: "recheck"
- - comment-added-contains-event:
- comment-contains-value: "reverify"
- projects:
- - project-compare-type: "ANT"
- project-pattern: "{project}"
- branches:
- - branch-compare-type: "ANT"
- branch-pattern: "**/{branch}"
- file-paths:
- - compare-type: REG_EXP
- pattern: ^((?!\/COMMIT_MSG|docs|_abc|_def[\/\.]).)*$
- disable-strict-forbidden-file-verification: "true"
- override-votes: true
- gerrit-build-notbuilt-verified-value: 0
- gerrit-build-successful-verified-value: 1
- # yamllint disable-line rule:line-length
- notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
- # yamllint disable-line rule:line-length
- failed-message: "Checkstyle failed. No further verify jobs will be started."
- successful-message: "checkstyle_success"
- skip-vote:
- successful: true
- failed: false
- unstable: false
- notbuilt: false
-
- builders:
- - shell: !include-raw-escape:
- - ../scripts/setup_executor_env.sh
- - shell: !include-raw-escape:
- - ../scripts/hicn/checkstyle.sh
-
- publishers:
- - fdio-infra-publish
- - naginator:
- rerun-unstable-builds: true
- max-failed-builds: 1
- fixed-delay: 90
-
-- job-template:
- name: "hicn-verify-build-{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}"
- - stream-parameter:
- stream: "{repo}"
-
- scm:
- - gerrit-trigger-scm:
- credentials-id: "jenkins-gerrit-credentials"
- refspec: "$GERRIT_REFSPEC"
- choosing-strategy: "gerrit"
-
- wrappers:
- - fdio-infra-wrappers:
- build-timeout: 120
-
- triggers:
- - gerrit:
- server-name: "Primary"
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: "checkstyle_success"
- projects:
- - project-compare-type: "ANT"
- project-pattern: "{project}"
- branches:
- - branch-compare-type: "ANT"
- branch-pattern: "**/{branch}"
- # yamllint disable-line rule:line-length
- notbuilt-message: "Automatic retry of failed jobs may be in process. A proper vote should be set when retry completes."
- # yamllint disable-line rule:line-length
- failed-message: "Build failed. No further verify jobs will be started."
- successful-message: "build_success-{stream}-{os}-{executor-arch}"
- skip-vote:
- successful: true
- failed: true
- unstable: true
- notbuilt: true
- override-votes: true
- gerrit-build-successful-verified-value: 1
- gerrit-build-failed-verified-value: 1
- gerrit-build-unstable-verified-value: 1
- gerrit-build-notbuilt-verified-value: 1
-
- builders:
- - shell: !include-raw-escape:
- - ../scripts/setup_executor_env.sh
- - shell: !include-raw-escape:
- - ../scripts/hicn/build.sh
-
- publishers:
- - fdio-infra-publish
- - archive-artifacts:
- artifacts: "packages/*.deb, packages/*.rpm"
- - xunit:
- thresholdmode: "percent"
- thresholds:
- - failed:
- failure: 0
- types:
- - gtest:
- pattern: "**/reports/*report.xml"
-
-- job-template:
- name: "hicn-verify-functest-{stream}-{os}-{executor-arch}"
-
- project-type: freestyle
- node: "ubuntu2004-docker-4c-4g"
- 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}"
- - stream-parameter:
- stream: "{repo}"
-
- 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-build:
- name: "{project}"
- branch: "{branch}"
- stream: "{stream}"
- os: "{os}"
- executor-arch: "{executor-arch}"
-
- builders:
- - shell: !include-raw-escape:
- - ../scripts/hicn/functest.sh
-
- publishers:
- - robot:
- output-path: "tests"
- pass-threshold: 75.0
- only-critical: false
- - fdio-infra-publish
-
-- job-template:
- name: "hicn-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: "{stream}"
-
- 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/hicn/checkstyle.sh
- - shell: !include-raw-escape:
- - ../scripts/hicn/build.sh
- - shell: !include-raw-escape:
- - ../scripts/packagecloud_push.sh
-
- publishers:
- - fdio-infra-publish
- - xunit:
- thresholdmode: "percent"
- thresholds:
- - failed:
- failure: 0
- types:
- - gtest:
- pattern: "**/reports/*report.xml"
-
-- job-template:
- name: "hicn-extras-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}"
- - stream-parameter:
- stream: "{repo}"
-
- scm:
- - gerrit-trigger-scm:
- credentials-id: "jenkins-gerrit-credentials"
- refspec: "$GERRIT_REFSPEC"
- choosing-strategy: "gerrit"
-
- wrappers:
- - fdio-infra-wrappers:
- build-timeout: 120
-
- triggers:
- - gerrit:
- server-name: "Primary"
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: "verify-extras"
- projects:
- - project-compare-type: "ANT"
- project-pattern: "{project}"
- branches:
- - branch-compare-type: "ANT"
- branch-pattern: "**/{branch}"
-
- builders:
- - shell: !include-raw-escape:
- - ../scripts/setup_executor_env.sh
- - shell: !include-raw-escape:
- - ../scripts/hicn/build-extras.sh
-
- publishers:
- - fdio-infra-publish
-
-- job-template:
- name: "hicn-extras-build-{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: "{repo}"
-
- scm:
- - gerrit-trigger-scm:
- credentials-id: "jenkins-gerrit-credentials"
- refspec: ""
- choosing-strategy: "default"
-
- wrappers:
- - fdio-infra-wrappers:
- build-timeout: "{build-timeout}"
-
- triggers:
- - gerrit:
- server-name: "Primary"
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: "build-extras"
- projects:
- - project-compare-type: "ANT"
- project-pattern: "{project}"
- branches:
- - branch-compare-type: "ANT"
- branch-pattern: "**/{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/hicn/build-extras.sh
- - shell: !include-raw-escape:
- - ../scripts/packagecloud_push.sh
-
- publishers:
- - fdio-infra-publish
-
-- job-template:
- name: "hicn-vpp-latest-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}"
- - stream-parameter:
- stream: "{repo}"
-
- scm:
- - gerrit-trigger-scm:
- credentials-id: "jenkins-gerrit-credentials"
- refspec: "$GERRIT_REFSPEC"
- choosing-strategy: "gerrit"
-
- wrappers:
- - fdio-infra-wrappers:
- build-timeout: 120
-
- triggers:
- - timed: "H H * * *"
- - gerrit-trigger-manually-triggered:
- comment-trigger-value: "verify-vpp-latest"
- name: "{project}"
- branch: "{branch}"
-
- builders:
- - shell: !include-raw-escape:
- - ../scripts/setup_executor_env.sh
- - shell: !include-raw-escape:
- - ../scripts/hicn/build-vpp-latest.sh
-
- publishers:
- - fdio-infra-publish
-
-- project:
- name: hicn-info
- project-name: hicn
- jobs:
- - gerrit-info-yaml-verify
- build-node: centos7-builder-2c-2g
- project: hicn
- branch: master