Devin Lim | e1346f4 | 2018-05-15 15:41:36 -0700 | [diff] [blame] | 1 | #!groovy |
| 2 | |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 3 | // Copyright 2017 Open Networking Foundation (ONF) |
| 4 | // |
| 5 | // Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 6 | // the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 7 | // or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
| 8 | // |
| 9 | // TestON is free software: you can redistribute it and/or modify |
| 10 | // it under the terms of the GNU General Public License as published by |
| 11 | // the Free Software Foundation, either version 2 of the License, or |
| 12 | // (at your option) any later version. |
| 13 | // |
| 14 | // TestON is distributed in the hope that it will be useful, |
| 15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | // GNU General Public License for more details. |
| 18 | // |
| 19 | // You should have received a copy of the GNU General Public License |
| 20 | // along with TestON. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | // This is the dependency Jenkins script. |
| 23 | // This will initialize the paths of the jenkins file and paths. |
| 24 | |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 25 | // init the paths for the directory |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 26 | def initLocation(){ |
| 27 | jenkinsFolder = "~/OnosSystemTest/TestON/JenkinsFile/" |
| 28 | rScriptLocation = jenkinsFolder + "wikiGraphRScripts/" |
| 29 | jenkinsWorkspace = "/var/jenkins/workspace/" |
| 30 | SCPFSpecificLocation = rScriptLocation + "SCPFspecificGraphRScripts/" |
| 31 | CHOScriptDir = "~/CHO_Jenkins_Scripts/" |
| 32 | } |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 33 | |
| 34 | // init the paths for the files. |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 35 | def initFiles(){ |
| 36 | trendIndividual = rScriptLocation + "trendIndividualTest.R" |
| 37 | trendMultiple = rScriptLocation + "trendMultipleTests.R" |
| 38 | trendSCPF = rScriptLocation + "trendSCPF.R" |
| 39 | trendCHO = rScriptLocation + "trendCHO.R" |
| 40 | histogramMultiple = rScriptLocation + "histogramMultipleTestGroups.R" |
| 41 | pieMultiple = rScriptLocation + "pieMultipleTests.R" |
| 42 | } |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 43 | |
| 44 | // init both directory and file paths. |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 45 | def init(){ |
| 46 | initLocation() |
| 47 | initFiles() |
| 48 | } |
Jon Hall | 6af749d | 2018-05-29 12:59:47 -0700 | [diff] [blame] | 49 | |
| 50 | return this |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 51 | |