minor fix to Jenkins refactoring (4)
Change-Id: Ic6f318c7997071aa403c91be28878001353d3788
diff --git a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
index 27eddbb..c258d34 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
@@ -19,8 +19,6 @@
// You should have received a copy of the GNU General Public License
// along with TestON. If not, see <http://www.gnu.org/licenses/>.
-import groovy.json.*
-
allTests = [:]
schedules = [:]
@@ -28,8 +26,8 @@
def jsonSlurper = new JsonSlurper()
def tests_buffer = readTrusted( "TestON/JenkinsFile/dependencies/tests.json" )
def schedules_buffer = readTrusted( "TestON/JenkinsFile/dependencies/schedule.json" )
- allTests = jsonSlurper.parse( tests_buffer )
- schedules = jsonSlurper.parse( schedules_buffer )
+ allTests = readJSON text: tests_buffer
+ schedules = readJSON text: schedules_buffer
}
def getAllTests(){