# Copyright (c) 2020 Cisco and/or its affiliates. # Copyright (c) 2019 PANTHEON.tech s.r.o. 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: csit-func description: 'CSIT Functinal Testing Jenkins jobs.' os: - 'ubuntu1604' - 'centos7' jobs: - 'csit-vpp-functional-{stream}-{os}-virl' - 'csit-nsh_sfc-verify-func-{stream}-{os}-virl' - 'csit-tldk-verify-func-{stream}-{os}-virl' - 'csit-dmm-functional-{stream}-ubuntu1604-virl' project: 'csit' branch: 'master' branch-id: 'oper' build-artifact-num-to-keep: 10 stream: - '1904': branch: 'rls1904' - '1908_1': branch: 'rls1908_1' - job-template: name: 'csit-vpp-functional-{stream}-{os}-virl' project-type: freestyle node: '{os}-basebuild-4c-4g' concurrent: true archive-artifacts: > **/csit/report.html **/csit/log.html **/csit/output.xml latest-only: false build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' - gerrit-parameter: branch: '{branch}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. # This is an automatic verify job, part of API coverage. # CRC checking is needed to ensure vpp crc job breaks only when intended. # Can be removed when this job is no longer needed for full API coverage. - csit-fail-on-crc-mismatch-parameter: fail-on-crc-mismatch: 'True' 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-manually-triggered: name: '{project}' branch: '{branch}' comment-trigger-value: 'csit-virltest' builders: - shell: !include-raw-escape: - ../scripts/csit/vpp-functional-virl.sh publishers: - robot-report: output-path: '' - fdio-infra-shiplogs: maven-version: 'mvn33-new' - job-template: name: 'csit-nsh_sfc-verify-func-{stream}-{os}-virl' project-type: freestyle node: '{os}-basebuild-4c-4g' concurrent: true archive-artifacts: 'archive/*.*' latest-only: false build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' 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}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. 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-manually-triggered: name: '{project}' branch: '{branch}' comment-trigger-value: 'csit_nsh_sfc_func_{stream}' builders: - shell: !include-raw-escape: - ../scripts/csit/nsh_sfc-functional-virl.sh publishers: - robot-report: output-path: 'archive' - fdio-infra-shiplogs: maven-version: 'mvn33-new' - job-template: name: 'csit-tldk-verify-func-{stream}-{os}-virl' project-type: freestyle node: '{os}-basebuild-4c-4g' concurrent: true archive-artifacts: 'archive/*.*' latest-only: false build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' 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}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. 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-manually-triggered: name: '{project}' branch: '{branch}' comment-trigger-value: 'csit_verify_tldk_func' builders: - shell: !include-raw-escape: - ../scripts/csit/tldk-functional-virl.sh publishers: - robot-report: output-path: 'archive' - fdio-infra-shiplogs: maven-version: 'mvn33-new' - job-template: name: 'csit-dmm-functional-{stream}-ubuntu1604-virl' project-type: freestyle node: 'ubuntu1604-basebuild-4c-4g' concurrent: true archive-artifacts: 'archive/*.*' latest-only: false build-discarder: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' - gerrit-parameter: branch: '{branch}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' description: Artifacts to archive to the logs server. 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-manually-triggered: name: '{project}' branch: '{branch}' comment-trigger-value: 'csit_verify_dmm_func' builders: - shell: !include-raw-escape: - ../scripts/csit/dmm-functional-virl.sh publishers: - robot-report: output-path: '' - fdio-infra-shiplogs: maven-version: 'mvn33-new'