[ONOS-7756] Fix variable scope in Jenkins trigger

Change-Id: I39e93f6f0b5fada379313ac10226ddb5313bd332
diff --git a/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy b/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
index c11ee8a..eacb1a6 100644
--- a/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
@@ -102,8 +102,8 @@
 
     println "Job name: " + jobOn + "-pipeline-" + ( manuallyRun ? "manually" : branch )
     def wiki = branch
-    onos_branch = funcs.branchWithPrefix( branch )
-    test_branch = funcs.testBranchWithPrefix( branch )
+    def onos_branch = funcs.branchWithPrefix( branch )
+    def test_branch = funcs.testBranchWithPrefix( branch )
     println "onos_branch with prefix: " + onos_branch
     println "test_branch with prefix: " + test_branch
     node( "TestStation-" + nodeName + "s" ) {