# Copyright (c) 2019 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: csit-vpp-device
description: 'CSIT jenkins jobs.'
os:
- 'ubuntu1804'
topo:
- '1n'
arch:
- 'skx'
jobs:
- 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
- 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
- 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
project: 'csit'
branch: 'master'
branch-id: 'oper'
stream_timed:
- master:
branch: 'master'
branch-id: 'oper'
- '1901':
branch: 'rls1901'
branch-id: 'oper-rls1901'
stream:
- master:
branch: 'master'
branch-id: 'oper'
- '1810':
branch: 'rls1810'
branch-id: 'oper-rls1810'
- '1901':
branch: 'rls1901'
branch-id: 'oper-rls1901'
- job-template:
name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
description: |
- objective
- vpp-device verify - per csit gerrit patch
- job
- name: csit-vpp-device-{stream}-{os}-{topo}-{arch}
- trigger: keyword in comment to csit patch:
csit-devicetest tag_list
- test-cases selection
- test-cases selected using trigger keyword followed by tags
- all test-cases are labelled with CSIT RF topic tags
defined in csit/docs/tag_documentation.rst
- default tags for vpp-device test type
- results
- jjb verify: PASS/FAIL
- present: no
- analyse: no
project-type: freestyle
node: 'vpp-csit-device'
concurrent: true
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}'
- gerrit-refspec-parameter
- gerrit-event-type-parameter
- gerrit-event-comment-text-parameter
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: 'false'
- draft-published-event
- comment-added-contains-event:
comment-contains-value: 'recheck'
- comment-added-contains-event:
comment-contains-value: 'reverify'
- comment-added-contains-event:
comment-contains-value: 'csit-devicetest'
projects:
- project-compare-type: 'ANT'
project-pattern: '{project}'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
builders:
- shell:
!include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
publishers:
- archive-artifacts:
artifacts: 'archive/*.*'
latest-only: false
- robot:
output-path: archive
other-files:
- '*.*'
- fdio-infra-shiplogs:
maven-version: 'mvn33-new'
- job-template:
name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
description: |
- objective
- Validate latest vpp build from corresponding branch stored
in nexus against verified CSIT codebase of corresponding
branch.
- test-cases selection
- pre-selected test-cases
- all test-cases are labelled with CSIT RF topic tags
defined in csit/docs/tag_documentation.rst
- default tags for vpp-device test type
- results
- jjb verify: PASS/FAIL
- present: no
- analyse: no
project-type: freestyle
node: 'vpp-csit-device'
concurrent: 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}'
wrappers:
- fdio-infra-wrappers-non-activity-timeout:
build-timeout: '{build-timeout}'
triggers:
- timed: '0 4 * * 2,6'
- gerrit-trigger-manually-triggered:
comment-trigger-value: 'csit-verify-vpp'
name: '{project}'
branch: '{branch}'
builders:
- shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
- inject:
properties-file: variables.prop
- shell:
!include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
publishers:
- archive-artifacts:
artifacts: 'csit/archive/*.*'
latest-only: false
- robot:
output-path: 'csit/archive'
other-files:
- '*.*'
- fdio-infra-shiplogs:
maven-version: 'mvn33-new'
- job-template:
name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
description: |
- objective
- Validate CSIT code of corresponding branch against
verified vpp build from corresponding branch.
- test-cases selection
- pre-selected test-cases
- all test-cases are labelled with CSIT RF topic tags
defined in csit/docs/tag_documentation.rst
- default tags for vpp-device test type
- results
- jjb verify: PASS/FAIL
- present: no
- analyse: no
project-type: freestyle
node: 'vpp-csit-device'
concurrent: 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}'
scm:
- git-scm:
credentials-id: 'jenkins-gerrit-credentials'
branch: '{branch}'
wrappers:
- fdio-infra-wrappers-non-activity-timeout:
build-timeout: '{build-timeout}'
triggers:
- timed: '0 4 * * 0'
- gerrit-trigger-manually-triggered:
comment-trigger-value: 'csit-vpp-ref-verify'
name: '{project}'
branch: '{branch}'
builders:
- shell:
!include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
publishers:
- archive-artifacts:
artifacts: 'archive/*.*'
latest-only: false
- robot:
output-path: archive
other-files:
- '*.*'
- fdio-infra-shiplogs:
maven-version: 'mvn33-new'