Fix the race condition for Jenkins

Change-Id: Ida30deba7f3fb3bc7ff52a4457fa55d00bf55910
diff --git a/TestON/JenkinsFile/TriggerFuncs.groovy b/TestON/JenkinsFile/TriggerFuncs.groovy
index e877ff5..3952183 100644
--- a/TestON/JenkinsFile/TriggerFuncs.groovy
+++ b/TestON/JenkinsFile/TriggerFuncs.groovy
@@ -51,7 +51,7 @@
 }
 def trigger( branch, tests, nodeName, jobOn, manuallyRun, onosTag ){
     println jobOn + "-pipeline-" + manuallyRun ? "manually" : branch
-    wiki = branch
+    def wiki = branch
     print "HERE2.5:" + branch
     print "HERE4:" + wiki
     branch = funcs.branchWithPrefix( branch )