minor fix to Jenkins refactoring (2)
Change-Id: I1d6b69d0630a2992a1df151080308cdf7c0c7139
diff --git a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
index a392d5c..7a3ea23 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
@@ -20,17 +20,14 @@
// along with TestON. If not, see <http://www.gnu.org/licenses/>.
import groovy.json.*
-fileRelated = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsPathAndFiles.groovy' )
-
-fileRelated.init()
allTests = [:]
schedules = [:]
def init(){
def jsonSlurper = new JsonSlurper()
- def tests_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( fileRelated.jenkinsFolder + "dependencies/tests.json" ),"UTF-8" ) )
- def schedules_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( fileRelated.jenkinsFolder + "dependencies/schedule.json" ),"UTF-8" ) )
+ def tests_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( "TestON/JenkinsFile/dependencies/tests.json" ),"UTF-8" ) )
+ def schedules_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( "TestON/JenkinsFile/dependencies/schedule.json" ),"UTF-8" ) )
allTests = jsonSlurper.parse( tests_buffer )
schedules = jsonSlurper.parse( schedules_buffer )
}