Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame^] | 1 | #!groovy |
| 2 | funcs = evaluate readTrusted( 'JenkinsCommonFuncs.groovy' ) |
| 3 | //generalFuncs = evaluate readTrusted( 'GeneralFuncs.groovy' ) |
| 4 | nodeCluster = params.NodeCluster |
| 5 | |
| 6 | graph_generator_file = "~/OnosSystemTest/TestON/JenkinsFile/scripts/testCaseGraphGenerator.R" |
| 7 | graph_saved_directory = "/var/jenkins/workspace/postjob-" + nodeCluster + "/" |
| 8 | |
| 9 | funcs.initializeTrend( nodeCluster ); |
| 10 | def prop = null |
| 11 | prop = funcs.getProperties() |
| 12 | |
| 13 | def Tests = params.Test |
| 14 | prop[ "ONOSBranch" ] = params.ONOSbranch |
| 15 | |
| 16 | def testsToRun = null |
| 17 | testsToRun = funcs.getTestsToRun( Tests ) |
| 18 | |
| 19 | def tests = [:] |
| 20 | for( String test : testsToRun ){ |
| 21 | println test |
| 22 | tests[ test ] = funcs.runTest( test, true, prop, test, true, [], graph_generator_file, graph_saved_directory ) |
| 23 | } |
| 24 | |
| 25 | for ( test in tests.keySet() ){ |
| 26 | tests[ test ].call() |
| 27 | } |