diff --git a/vars/helper.groovy b/vars/helper.groovy
index a44d7ca98f78f2e0b2ce8bb8297fbdd0e4046284..83a60652d202ffa555bcb3d8b90cd2d0bf4643c5 100644
--- a/vars/helper.groovy
+++ b/vars/helper.groovy
@@ -90,7 +90,7 @@ def doDependencyArtefacts(ArrayList<String> dependencyList, String label, String
         cp /scratch/dependencies.${it}.list ${WORKSPACE}/artefact.list
       """
       myFile = readFile(env.WORKSPACE+"/artefact.list")
-      helper.doDependencyArtefacts(myFile.split("\n"), label, buildType)
+      doDependencyArtefacts(new ArrayList<String>(Arrays.asList(myFile.split("\n"))), label, buildType)
     }
     echo("Done getting artefacts.")
   }