Script Libraries running everytime

All Script libraries added to a project run for each deployment step, even if they’re not explicitly called.

All my deployment steps are failing for this reason. I have to copy/paste every powershell script into it’s own step to prevent this from happening.

Any help will be appreciated.

Running: Octopus Deploy


Thanks for getting in touch! Script libraries are added to each step, as they are ‘made available’ to each step, as they are for functions you might want to use at any time. They are not designed to be run as a single step. It’s designed for project wide use. If you would like a re-usable PowerShell step that you can place at specific points of a project to run only once when required, then I would suggest a Step Template.

Hope this helps!