Merge "adding siab latest and stable jobs"
diff --git a/jjb/pipeline/siab.groovy b/jjb/pipeline/siab.groovy
index e6074c1..e4f7431 100644
--- a/jjb/pipeline/siab.groovy
+++ b/jjb/pipeline/siab.groovy
@@ -39,7 +39,7 @@
       steps {
         sh """
             pushd $WORKSPACE/automation-tools/seba-in-a-box
-            make -j2
+            make ${params.version} -j2
             popd
             """
             }
@@ -55,6 +55,19 @@
             }
         }
 
+    stage ('Display Kafka Events') {
+      steps {
+        sh """
+            pushd $WORKSPACE/automation-tools/seba-in-a-box
+            CORD_KAFKA_IP=\$(kubectl exec cord-kafka-0 -- ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 192)
+            kafkacat -e -C -b \$CORD_KAFKA_IP -t onu.events -f 'Topic %t [%p] at offset %o: key %k: %s\n >0'
+            kafkacat -e -C -b \$CORD_KAFKA_IP -t authentication.events -f 'Topic %t [%p] at offset %o: key %k: %s\n >0'
+            kafkacat -e -C -b \$CORD_KAFKA_IP -t dhcp.events -f 'Topic %t [%p] at offset %o: key %k: %s\n >0'
+            popd
+            """
+            }
+        }
+
      stage('Publish') {
       steps {
         sh """
diff --git a/jjb/siab.yaml b/jjb/siab.yaml
index 9be9b67..8a13a74 100644
--- a/jjb/siab.yaml
+++ b/jjb/siab.yaml
@@ -7,11 +7,12 @@
     project-name: '{name}'
 
     jobs:
-      - 'siab-build-test'
+      - 'siab-stable'
+      - 'siab-latest'
 
 - job-template:
-    id: 'siab-build-test'
-    name: 'seba-in-a-box-build-test'
+    id: 'siab-stable'
+    name: 'seba-in-a-box-build-test-stable'
 
     description: |
       <!-- Managed by Jenkins Job Builder -->
@@ -34,6 +35,11 @@
           default: 'qct-pod3-node1'
           description: 'Name of the Jenkins node to run the job on'
 
+      - string:
+          name: version
+          default: 'stable'
+          description: 'Latest | Stable'
+
     project-type: pipeline
     concurrent: false
 
@@ -42,4 +48,45 @@
     triggers:
        - timed: |
                  TZ=America/Los_Angeles
-                 H * * * *
+                 0 */2 * * *
+
+- job-template:
+    id: 'siab-latest'
+    name: 'seba-in-a-box-build-test-latest'
+
+    description: |
+      <!-- Managed by Jenkins Job Builder -->
+      Created by {id} job-template from ci-management/jjb/siba.yaml  <br /><br />
+      E2E Validation for Seba-in-a-Box
+
+    properties:
+      - cord-infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+          artifact-num-to-keep: '{artifact-num-to-keep}'
+
+    wrappers:
+      - lf-infra-wrappers:
+          build-timeout: '{build-timeout}'
+          jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+    parameters:
+      - string:
+          name: executorNode
+          default: 'qct-pod3-node1'
+          description: 'Name of the Jenkins node to run the job on'
+
+      - string:
+          name: version
+          default: 'latest'
+          description: 'Latest | Stable'
+
+    project-type: pipeline
+    concurrent: false
+
+    dsl: !include-raw-escape: pipeline/siab.groovy
+
+    triggers:
+       - timed: |
+                 TZ=America/Los_Angeles
+                 59 */2 * * *
+