Hi,
I am doing a migration between 2 servers - and it is split into 2 runbooks under the same project.
I have octopus output variables in the first runbook (source) that needs to be used in the second (destination). What is the best way to achieve this?
Thanks for your question, and welcome to the Octopus community!
Not knowing exactly the context as to why the runbooks need to be split, I’d say probably the easiest way would be to have the output variables from the first runbook be passed to the second runbook by way of a community library step called Run Octopus Deploy Runbook.
With it’s use in the first runbook, you can trigger the second runbook, and pass variables to the second runbook. The second runbook (destination) will need to have the variables that are needed to be passed to it declared as prompted variables and scoped to only the second runbook, a bit like this: