From 91cfd7c256c6439424710a3f7b060e44a86aef81 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Wed, 10 Oct 2018 12:36:05 +0000 Subject: [PATCH] CSIT-1306 Add vpp-device verify job Change-Id: Iab58d58cc7c7212961abff5a986d7321f63c6cab Signed-off-by: Peter Mikus --- jjb/csit/csit-vpp-device.yaml | 131 +++++++++++++++++++++++++++++ jjb/csit/include-raw-csit-device-verify.sh | 19 +++++ 2 files changed, 150 insertions(+) create mode 100644 jjb/csit/csit-vpp-device.yaml create mode 100644 jjb/csit/include-raw-csit-device-verify.sh diff --git a/jjb/csit/csit-vpp-device.yaml b/jjb/csit/csit-vpp-device.yaml new file mode 100644 index 000000000..b3d7f798f --- /dev/null +++ b/jjb/csit/csit-vpp-device.yaml @@ -0,0 +1,131 @@ +# Copyright (c) 2018 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}' + project: 'csit' + branch: 'master' + branch-id: 'oper' + stream: + - master: + branch: 'master' + branch-id: 'oper' + - '1810': + branch: 'rls1810' + branch-id: 'oper-rls1810' + +- job-template: + name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}' + description: | + + + project-type: freestyle + node: 'foo' + 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: + - 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}' + skip-vote: + successful: true + failed: true + unstable: true + notbuilt: true + + 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' diff --git a/jjb/csit/include-raw-csit-device-verify.sh b/jjb/csit/include-raw-csit-device-verify.sh new file mode 100644 index 000000000..312254131 --- /dev/null +++ b/jjb/csit/include-raw-csit-device-verify.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Copyright (c) 2018 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. + +set -exuo pipefail + +csit_entry_dir="${WORKSPACE}/resources/libraries/bash/entry" +source "${csit_entry_dir}/bootstrap_vpp_device.sh" -- 2.16.6