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)?
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.
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.
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.
In v220.127.116.112, we have added output variables to the SSH Run Script action and fixed log message handling.