CSIT: new job 'csit-vpp-verify-master' 90/590/1
authorMiroslav Miklus <mmiklus@cisco.com>
Tue, 22 Mar 2016 17:32:41 +0000 (18:32 +0100)
committerMiroslav Miklus <mmiklus@cisco.com>
Tue, 22 Mar 2016 17:38:38 +0000 (18:38 +0100)
This job is aimed to test latest csit master code against
latest stable vpp release. If the verification is successfull
then push curent master to master-verified branch

Change-Id: I18316f6f96e793721ee78c3b83a18ff74778cabf
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
jjb/csit/csit-vpp-functional.yaml
jjb/csit/include-raw-csit-vpp-verify-master.sh [new file with mode: 0644]

index 6e201ab..dcedc68 100644 (file)
@@ -6,6 +6,7 @@
         - 'csit-vpp-functional-hw-tb2'
         - 'csit-vpp-functional-virl'
         - 'csit-vpp-functional-nodepool'
+        - 'csit-vpp-master-verify-weekly'
 
     project: 'csit'
     branch: 'master'
             latest-only: false
 
         - robot-report
+
+- job-template:
+    name: 'csit-vpp-master-verify-weekly'
+
+    project-type: freestyle
+    node: verify
+    concurrent: false
+
+    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:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            branch: 'master'
+
+    wrappers:
+        - ssh-agent-credentials:
+            users:
+                - '{ssh-credentials}'
+
+    triggers:
+        - timed: 'H H * * 0'
+
+    builders:
+        - shell:
+            !include-raw-escape jjb/csit/include-raw-csit-vpp-verify-master.sh
+
+    publishers:
+        - git:
+               push-only-if-success: true
+               branches:
+                   - branch:
+                       name: "master-verified"
diff --git a/jjb/csit/include-raw-csit-vpp-verify-master.sh b/jjb/csit/include-raw-csit-vpp-verify-master.sh
new file mode 100644 (file)
index 0000000..8f5d005
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# execute csit bootstrap script if it exists
+if [ -e bootstrap-verify-master.sh ]
+then
+    # make sure that bootstrap.sh is executable
+    chmod +x bootstrap-verify-master.sh
+    # run the script
+    ./bootstrap-verify-master.sh
+else
+    echo 'ERROR: No bootstrap-verify-master.sh found'
+    exit 1
+fi
+
+# vim: ts=4 ts=4 sts=4 et :