[AETHER-474] Create CI Job for SR stratum tests

Change-Id: I4b8c271000aac3c282d1f0ba0b9aed034fa27837
diff --git a/TestON/JenkinsFile/CommonJenkinsFile.groovy b/TestON/JenkinsFile/CommonJenkinsFile.groovy
index 0c350e6..279e858 100644
--- a/TestON/JenkinsFile/CommonJenkinsFile.groovy
+++ b/TestON/JenkinsFile/CommonJenkinsFile.groovy
@@ -124,7 +124,7 @@
 
 def initGraphPaths(){
     graphPaths.put( "trendIndividual", fileRelated.rScriptPaths[ "scripts" ][ "trendIndividual" ] )
-    if ( category == "SR" ){
+    if ( category == "SR" || category == "SR-StratumBMv2" ){
         graphPaths.put( "saveDirectory", fileRelated.workspaces[ "base" ] + "postjob-" + ( testStation - "TestStation-" - "s" ) + "/" )
     } else if ( category == "SRHA" ) {
         graphPaths.put( "saveDirectory", fileRelated.workspaces[ "Fabric" ] )
@@ -228,7 +228,7 @@
     // bash script to copy the logs and other necessary element for SR tests.
 
     result = ""
-    if ( category == "SR" ){
+    if ( category == "SR" || category == "SR-StratumBMv2" ){
         result = '''
       sudo rm /var/jenkins/workspace/SR-log-${WikiPrefix}/*
       sudo cp *karaf.log.* /var/jenkins/workspace/SR-log-${WikiPrefix}/
@@ -315,7 +315,7 @@
     // prefix : branch prefix ( master, 2.1, 1.15 ... )
 
     resultURL = ""
-    if ( category == "SR" ){
+    if ( category == "SR" || category == "SR-StratumBMv2" ){
         def post = build job: "SR-log-" + prefix, propagate: false
         resultURL = post.getAbsoluteUrl()
     }
diff --git a/TestON/JenkinsFile/dependencies/tests.json b/TestON/JenkinsFile/dependencies/tests.json
index 56ada41..55c5cff 100644
--- a/TestON/JenkinsFile/dependencies/tests.json
+++ b/TestON/JenkinsFile/dependencies/tests.json
@@ -1288,6 +1288,70 @@
         "category": "SR",
         "supportedBranches": [ "all" ]
     },
+    "SRDhcprelay-stratum": {
+        "test": "SRDhcprelay --params-file SRDhcprelay.params.stratum",
+        "wikiName": "SR Dhcp Relay with Stratum BMv2 switches",
+        "wikiFile": "SRDhcprelayWiki.txt",
+        "schedules": [
+            {
+                "branch": "master",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-master"
+            },
+            {
+                "branch": "onos-2.x",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-2.x"
+            }
+        ],
+        "category": "SR-StratumBMv2",
+        "supportedBranches": [ "onos-2.x", "master" ]
+    },
+    "SRRouting-stratum": {
+        "test": "SRRouting --params-file SRRouting.params.stratum",
+        "wikiName": "SR Routing with Stratum BMv2 switches",
+        "wikiFile": "SRRoutingWiki.txt",
+        "schedules": [
+            {
+                "branch": "master",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-master"
+            },
+            {
+                "branch": "onos-2.x",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-2.x"
+            }
+        ],
+        "category": "SR-StratumBMv2",
+        "supportedBranches": [ "onos-2.x", "master" ]
+    },
+    "SRBridging-stratum": {
+        "test": "SRBridging --params-file SRBridging.params.stratum",
+        "wikiName": "SR Bridging with Stratum BMv2 switches",
+        "wikiFile": "SRBridgingWiki.txt",
+        "schedules": [
+            {
+                "branch": "master",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-master"
+            },
+            {
+                "branch": "onos-2.x",
+                "day": "weekdays",
+                "nodeLabel": "Fabric-2.x"
+            }
+        ],
+        "category": "SR-StratumBMv2",
+        "supportedBranches": [ "onos-2.x", "master" ]
+    },
+    "SRBridging-tofino": {
+        "test": "SRBridging --params-file SRBridging.params.tofino --topo-file SRBridging.topo.0x1.physical",
+        "wikiName": "SR Bridging with Tofino switches",
+        "wikiFile": "SRBridgingWiki.txt",
+        "category": "SR-Tofino",
+        "supportedBranches": [ "onos-2.x", "master" ]
+    },
     "FUNCvirNetNB": {
         "wikiName": "FUNCvirNetNB",
         "wikiFile": "FUNCvirNetNBWiki.txt",