Save output from ssh script action to a variable

Hi Guys!

We’re using “SSH Run Script” Actions to run builds on a MAC server.
We’d like to use some of the output in order to set the build version for each build.

  • Is there an easy way to save output from “SSH Run Script” action (or part of the output) to a variable?
  • Are there any plans to add output monitors functionality for all / some actions (same as the action output monitors in FinalBuilder)?

Thanks again!

Hi Arik,

Continua CI actions will never have the full features of FinalBuilder actions. We did, however, recently add the ability to save output to variables in the Execute Program action. We plan to add similar functionality to some other actions in time and this will probably include the SSH Run Script action.

1 Like

Hi Arik,

We have now carried over the ability to save output to variables from the Execute Program action to the SSH Run Script action. We plan to release a new version tomorrow.

Note also that you can set Continua variables from the script by writing out the setVariable custom log message.

1 Like

Thank you kindly Dave!

I’ve tried echoing a custom message from within a “SSH Run Script” action but for some reason the variable stays empty, am I doing something wrong?

No, actually that’s another side effect of the SSH Run Script action not being a process and therefore not using the same message handler. We should be able to wire that up to work quickly tomorrow.

1 Like

In v1.9.2.902, we have added output variables to the SSH Run Script action and fixed log message handling.

1 Like