Skip to content

Conversation

@kube89
Copy link

@kube89 kube89 commented Jan 23, 2026

This PR introduces an opt-in way to preload Bash script modules before the user’s Bash script runs.

New variable: Octopus.Action.Script.PreloadScriptModules

If that variable is set, Calamari will source specific script modules in the bootstrapper first.
Then it sources the actual user script as usual.

Usage

Set the project variable and scope it to a process. Can scope to specific steps for different requirements, and maintain an entry not scoped at step-level if you want to define a default across the process.

Test scenario

Modules defined:
image

Project variables:
image

Deployment process with 2 steps (both running same inline script):
image

Logs (verbose) Step 1:
image

Logs (verbose) Step 2:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant