TLDK ci-management patch and shell script calling bootstrap-TLDK.sh. 47/6947/1
authorqun wan <qun.wan@intel.com>
Tue, 30 May 2017 23:35:45 +0000 (19:35 -0400)
committerqun wan <qun.wan@intel.com>
Tue, 30 May 2017 23:37:12 +0000 (19:37 -0400)
Change-Id: I174c8d8a04b36065993f910d1741359f62571e72
Signed-off-by: qun wan <qun.wan@intel.com>
jjb/tldk/include-raw-csit-tldk-functional-virl.sh [new file with mode: 0644]
jjb/tldk/tldk.yaml

diff --git a/jjb/tldk/include-raw-csit-tldk-functional-virl.sh b/jjb/tldk/include-raw-csit-tldk-functional-virl.sh
new file mode 100644 (file)
index 0000000..b18290c
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# execute nsh_sfc bootstrap script if it exists
+if [ -e bootstrap-TLDK.sh ]
+then
+    # make sure that bootstrap-TLDK.sh is executable
+    chmod +x bootstrap-TLDK.sh
+    # run the script
+    ./bootstrap-TLDK.sh
+else
+    echo 'ERROR: No bootstrap-TLDK.sh found'
+    exit 1
+fi
+
+# vim: ts=4 ts=4 sts=4 et :
index f235704..a91183c 100644 (file)
@@ -4,6 +4,7 @@
         - '{project}-verify-{stream}-{os}'
         - '{project}-merge-{stream}-{os}'
         - '{project}-verify-image-{stream}-{os}'
+        - 'csit-tldk-verify-func-{stream}-{os}-virl'
 
     project: 'tldk'
     os:
     publishers:
       - 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
+
+    logrotate:
+        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}'
+
+    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-patch-submitted:
+            name: '{project}'
+            branch: '{branch}'
+
+    builders:
+        - shell:
+            !include-raw-escape: include-raw-csit-tldk-functional-virl.sh
+
+    publishers:
+        - archive-artifacts:
+            artifacts: 'report.html, log.html, output.xml'
+            latest-only: false
+
+        - robot-report:
+            output-path: ''
+
+        - fdio-infra-shiplogs:
+            maven-version: 'mvn33-new'