SSH Execute/Close doesn't use FB variables

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)

 
SSH Close fails with:
"The connection is not open"

 

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

 

 

 

Hi John

This is a bug, the ssh execute action was not expanding variables. I’m running a build with the fix included right now, I’ll post here when it’s uploaded.

Hi John

This build has the fix :

https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1791.exe

The fix is working great! Thanks a ton for such a quick turn-around. You guys rock!