blob: e96a65f6c0c3145f9e8cac1ac3e96ea904b81025 [file] [log] [blame]
Devin Limf5175192018-05-14 19:13:22 -07001// Copyright 2017 Open Networking Foundation (ONF)
2//
3// Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
4// the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
5// or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg>
6//
7// TestON is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 2 of the License, or
10// (at your option) any later version.
11//
12// TestON is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with TestON. If not, see <http://www.gnu.org/licenses/>.
19
20// This is the Jenkins script for manual-graph-generator-overall
21
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -080022#!groovy
Devin Limf5175192018-05-14 19:13:22 -070023
24// read the dependency functions.
Devin Limb734ea52018-05-14 14:13:05 -070025funcs = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy' )
26test_lists = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy' )
27fileRelated = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsPathAndFiles.groovy' )
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -080028
Devin Limfe9a4cb2018-05-11 17:06:21 -070029fileRelated.init()
Devin Limf5175192018-05-14 19:13:22 -070030
31// set the file and directory paths.
Devin Limfe9a4cb2018-05-11 17:06:21 -070032stat_graph_generator_file = fileRelated.histogramMultiple
33pie_graph_generator_file = fileRelated.pieMultiple
34graph_saved_directory = fileRelated.jenkinsWorkspace + "postjob-VM/"
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -080035
Devin Limf5175192018-05-14 19:13:22 -070036// init trend which will generate the pie and histogram graphs to be VM.
Jeremy Ronquillo14ecc172018-03-05 09:57:17 -080037funcs.initializeTrend( "VM" )
38
39onos_branch = params.ONOSbranch
40AllTheTests = test_lists.getAllTheTests("")
41
Devin Limf5175192018-05-14 19:13:22 -070042// generate the graph and post the result on TestStation-VMs. Right now, all the pie and histograms are saved
43// on VM.
Devin Lim86e40532018-04-06 12:44:06 -070044funcs.generateStatGraph( "TestStation-VMs",
45 onos_branch,
46 AllTheTests,
47 stat_graph_generator_file,
48 pie_graph_generator_file,
Devin Limfe9a4cb2018-05-11 17:06:21 -070049 graph_saved_directory )