Here is the error message of the afteraction:
Showing prompt for variables dialog
Set Variables
Variable i_MakeDeployFromExistingCompile set to
Success
Error Executing script : AfterAction
Microsoft VBScript runtime error
Invalid procedure call or argument
Line : 3
Char : 1
------------------------------------------------------
Error in AfterScript : VBScript
This Action did execute successfully however an error occurred in the AfterAction script.
This is the script that I set in the FB:
Dim objDictionary
Set objDictionary = CreateObject("Scripting.Dictionary")
i_MakeDeployFromExistingCompile = Replace(i_MakeDeployFromExistingCompile,".zip","",1,-1,1)
ArrFiles = split(i_MakeDeployFromExistingCompile,vbNewLine)
Set re = new RegExp
re.Pattern = "\w{4}-\d+-(.*?)-(\d+\.\d+\.\d+\.\d+)-(.*)"
re.IgnoreCase = true
For each file in ArrFiles
Set results = re.Execute(file)
If results(0).SubMatches.Count = 3 Then
strBranch = results(0).SubMatches(2)
If Not (objDictionary.Exists(strBranch)) Then
objDictionary.add strBranch, ""
End If
Else
Wscript.Echo "Unable to get branch from: " & file
Wscript.Echo "Please fix, Mr. Due"
End If
Next
e_TFSListOfBranches = join(objDictionary.Keys, ";")