blob: 73a8751af60cc4c7c7f28489fcb752894ae18fc1 [file] [log] [blame]
Devin Lime1346f42018-05-15 15:41:36 -07001#!groovy
2
Devin Limf5175192018-05-14 19:13:22 -07003// 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 Ronquilloe1750cb2019-05-17 15:04:30 -070025import groovy.json.*
Devin Limf5175192018-05-14 19:13:22 -070026
Jeremy Ronquilloe1750cb2019-05-17 15:04:30 -070027jenkinsFiles = ""
28rScriptPaths = [:] // paths of r script files that generate wiki graphs
29workspaces = [:] // postjob workspaces
Devin Limf5175192018-05-14 19:13:22 -070030
31// init both directory and file paths.
Devin Limfe9a4cb2018-05-11 17:06:21 -070032def init(){
Jeremy Ronquilloe1750cb2019-05-17 15:04:30 -070033 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 Limfe9a4cb2018-05-11 17:06:21 -070039}
Jon Hall6af749d2018-05-29 12:59:47 -070040
41return this