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 | |
Jeremy Ronquillo | e1750cb | 2019-05-17 15:04:30 -0700 | [diff] [blame] | 25 | import groovy.json.* |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 26 | |
Jeremy Ronquillo | e1750cb | 2019-05-17 15:04:30 -0700 | [diff] [blame] | 27 | jenkinsFiles = "" |
| 28 | rScriptPaths = [:] // paths of r script files that generate wiki graphs |
| 29 | workspaces = [:] // postjob workspaces |
Devin Lim | f517519 | 2018-05-14 19:13:22 -0700 | [diff] [blame] | 30 | |
| 31 | // init both directory and file paths. |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 32 | def init(){ |
Jeremy Ronquillo | e1750cb | 2019-05-17 15:04:30 -0700 | [diff] [blame] | 33 | def paths_buffer = readTrusted( "TestON/JenkinsFile/dependencies/paths.json" ) |
| 34 | paths_json = readJSON text: paths_buffer |
| 35 | |
| 36 | jenkinsFiles = paths_json[ "jenkinsFiles" ] |
| 37 | workspaces = paths_json[ "workspaces" ] |
| 38 | rScriptPaths = paths_json[ "rScript" ] |
Devin Lim | fe9a4cb | 2018-05-11 17:06:21 -0700 | [diff] [blame] | 39 | } |
Jon Hall | 6af749d | 2018-05-29 12:59:47 -0700 | [diff] [blame] | 40 | |
| 41 | return this |