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