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