We’re currently using Octopus Server 2019.13.7. I wasn’t able to find how to use a script module in a Octopus Runbooks step. Are Script modules exclusive to “traditional” deployments or am I missing something obvious here?
I just checked in my test environment and there does not appear to be a way to accomplish this via runbook unless you wanted to “Deploy a Release” for a different project. However, I did confirm that it works when a trigger is activated to Deploy a Release.
For clarity, are you trying to deploy an existing release for the project or just reference the script module for a particular step in your runbook?
After bringing this up with the dev team, they showed me that you can implement script modules for runbooks. The script module does not need to be pulled into the runbook if it is already pulled into the process for the project.
When defining a step in the runbook, there is a line that says “Script modules included in the project with be automatically imported”. Notice the “Say-Hello” function.
I’ve simply created a “mock” process step, added the desired Script Module and voilà: the script module became available to all runbooks in my project.