I have a PowerShell step i use to restore a SQL DB. I want to run DbUp against the database i created in the previous step, and i have a nuget package which includes the DbUp package. How would i go about running this against the DB i have created? Do i use variables and put these into the DbUp script?

Hi Shane,

Thanks for getting in touch! It sounds like you’re looking for our output variables feature. This allows you to access variables from one step that were created in a previous step. The specific variable it looks like you’d need is Octopus.Action[StepName].Output.Package.InstallationDirectoryPath, where StepName is the name of the step that deployed the package.

I hope this helps! Don’t hesitate to reach out if you have any further questions going forward.

Best regards,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.