I’ve added a Step Template to my library called Add Bindings (a PowerShell step template to add bindings to an IIS site from definitions in a JSON string).
While debugging it, I found that the #require for my octopus-wrappers module was causing the script to fail, so I went to remove the #requires (assuming that the module name is different when Octopus loads it).
To my surprise I was unable to update the usage in the library - it thinks it isn’t in use:
In the project (which I just put under version control today):
The UPDATE button does nothing.
Looking at the network traffic, the request to /api/Spaces-1/actiontemplates/ActionTemplates-781/actionsUpdate has a payload of an empty array:
[]
Looking at the OCL file in source control, the step template version is 0:
step "Add Retailer Bindings" {
properties = {
Octopus.Action.TargetRoles = "pda"
}
action {
properties = {
Bindings = "#{xapi.retailer.bindings}"
Octopus.Action.RunOnServer = "false"
Octopus.Action.Template.Id = "ActionTemplates-781"
Octopus.Action.Template.Version = "0"
SiteName = "xapi"
}
worker_pool_variable = ""
}
}
Is this a bug?
We are on Octopus server v2022.1 (Build 2232). I’ll try updating to the latest one, but didn’t see any issues in the change logs that looked like this problem.
Thanks,
Darryyl