blob: 3430b4022eb1942e07330767140099f08e3b6feb [file] [log] [blame]
Devin Lim61643762017-12-07 15:55:38 -08001#!groovy
Devin Limb734ea52018-05-14 14:13:05 -07002funcs = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy' )
3fileRelated = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsPathAndFiles.groovy' )
Devin Limfe9a4cb2018-05-11 17:06:21 -07004
5fileRelated.init()
Devin Lim61643762017-12-07 15:55:38 -08006nodeCluster = params.NodeCluster
7
Devin Lim61643762017-12-07 15:55:38 -08008funcs.initializeTrend( nodeCluster );
Devin Lim981f80b2018-04-09 11:25:59 -07009if( nodeCluster == "Fabric" )
10 funcs.additionalInitForSR( params.ONOSbranch )
Devin Lim61643762017-12-07 15:55:38 -080011def prop = null
12prop = funcs.getProperties()
13
14def Tests = params.Test
15prop[ "ONOSBranch" ] = params.ONOSbranch
16
Devin Lim86e40532018-04-06 12:44:06 -070017
Devin Limfe9a4cb2018-05-11 17:06:21 -070018graph_generator_file = fileRelated.trendIndividual
19graph_saved_directory = fileRelated.jenkinsWorkspace + "postjob-" + nodeCluster + ( nodeCluster == "Fabric" ? funcs.fabricOn( prop[ "ONOSBranch" ] ) : "" ) + "/"
Devin Lim86e40532018-04-06 12:44:06 -070020
Devin Lim61643762017-12-07 15:55:38 -080021def testsToRun = null
22testsToRun = funcs.getTestsToRun( Tests )
23
24def tests = [:]
25for( String test : testsToRun ){
26 println test
27 tests[ test ] = funcs.runTest( test, true, prop, test, true, [], graph_generator_file, graph_saved_directory )
28}
29
30for ( test in tests.keySet() ){
31 tests[ test ].call()
Devin Lim981f80b2018-04-09 11:25:59 -070032}