I open a SSH connection with a name like:
SSHLinux_%ServerName%
Then, I perform a SSH Execute, and it fails with:
SSH Connection not found: SSHLinux_%ServerName%
Or:
An unexpected error occured : System.NullReferenceException: Object reference not set to an instance of an object.
at VSoft.FinalBuilder.SSH.InteractiveClient.Send(String command)
at VSoft.FinalBuilder.SSH.ActionExecuteCommand.OnExecute()
at VSoft.FinalBuilder.SSH.ActionBase.Execute()
at VSoft.CustomActionApi.BaseAction.ExecuteWrapper(ICustomActionExecuteContext Context, ExecuteDelegate Target)
I suspect, but can't confirm, that either SSH Open or SSH Execute/Close aren't "unwinding" the variable values. I would expect SSH Open to create a connection with a name like "SSHLinux_daphne_qa" and the later SSH connections use this connection. We're using asynchronous action groups to perform SSH against multiple machines simultaneously from within the same action list. So, each action list has it's own "ServerName" variable.
BTW, this connection naming pattern seems to work fine for the SFTP actions.
See example project, you'll need to set username/password/server1/2 to some appropriate values for your environment. Thanks for any help!
John