CSIT-1306 Add vpp-device verify job 19/15219/8
authorPeter Mikus <pmikus@cisco.com>
Wed, 10 Oct 2018 12:36:05 +0000 (12:36 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 15 Oct 2018 12:07:22 +0000 (12:07 +0000)
Change-Id: Iab58d58cc7c7212961abff5a986d7321f63c6cab
Signed-off-by: Peter Mikus <pmikus@cisco.com>
jjb/csit/csit-vpp-device.yaml [new file with mode: 0644]
jjb/csit/include-raw-csit-device-verify.sh [new file with mode: 0644]

diff --git a/jjb/csit/csit-vpp-device.yaml b/jjb/csit/csit-vpp-device.yaml
new file mode 100644 (file)
index 0000000..b3d7f79
--- /dev/null
@@ -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: |
+      <ul>
+          <li>objective
+              <ul>
+                  <li>vpp-device verify - per csit gerrit patch
+              </ul>
+          <li>job
+              <ul>
+                  <li>name: <b>csit-vpp-device-{stream}-{os}-{topo}-{arch}</b>
+                  <li>trigger: keyword in comment to csit patch:
+                      <b>csit-devicetest tag_list</b>
+              </ul>
+          <li>test-cases selection
+              <ul>
+                  <li>test-cases selected using trigger keyword followed by tags
+                  <li>all test-cases are labelled with CSIT RF topic tags
+                      defined in <i>csit/docs/tag_documentation.rst</i>
+              </ul>
+          <li>default tags for vpp-device test type
+              <ul>
+                  <li>devicetest
+              </ul>
+          <li>results
+              <ul>
+                  <li>jjb verify: PASS/FAIL
+                  <li>present: no
+                  <li>analyse: no
+              </ul>
+      </ul>
+
+    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 (file)
index 0000000..3122541
--- /dev/null
@@ -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"