adding stable mn jobs

Change-Id: I661660e672d9d35a03aa12a2a3c03fd78a5d0a5c
diff --git a/jobs.yaml b/jobs.yaml
index 1d9d765..06b98d6 100644
--- a/jobs.yaml
+++ b/jobs.yaml
@@ -20,6 +20,12 @@
 # ---- Mininet Build and Test Jobs ----
 - project:
     name: mininet-build
+    jobs:
+      - 'mininet-latest'
+      - 'mininet-stable'
+
+- job-group:
+    name: mininet-latest
     flavor:
       - precise32server
       - precise64server
@@ -27,16 +33,34 @@
       - trusty64server
       - utopic32server
       - utopic64server
+    branch: 'master'
+    tag: ''
     jobs:
-      - 'mininet-{flavor}'
-      - 'mininet-{flavor}-test'
+      - 'mininet-flavor-build'
+
+- job-group:
+    name: mininet-stable
+    flavor:
+      - trusty32server
+      - trusty64server
+    branch: '2.2.0b2'
+    tag: '-stable'
+    jobs:
+      - 'mininet-flavor-build'
+
+- job-group:
+    name: mininet-flavor-build
+    jobs:
+      - 'mininet-{flavor}{tag}'
+      - 'mininet-{flavor}-test{tag}'
 
 - job-template:
-    name: 'mininet-{flavor}'
+    name: 'mininet-{flavor}{tag}'
     block-downstream: true
     triggers:
       - timed: "@midnight"
     builders:
+      - shell: echo {branch}
       - shell: stdbuf -oL -eL mispipe "~mininet/mininet/util/vm/build.py -v --test sanity {flavor}"  "tr '\r' ' '"
       - shell: zip `basename -s .ovf */*.ovf`.zip */*.vmdk */*.ovf
     publishers:
@@ -52,7 +76,7 @@
             predefined-parameters: dir=$WORKSPACE
 
 - job-template:
-    name: 'mininet-{flavor}-test'
+    name: 'mininet-{flavor}-test{tag}'
     parameters:
         - string:
             name: dir