Versioned project unable to update step template version

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

This has already been fixed - it’s working fine now I upgraded to V2022.1 (Build 2342).

Maybe posting it here could help somebody else.

The Step Template usage screen still says it isn’t in use in any projects though (it is only used in this single version controlled project).

Hey Darryl,

Thanks for reaching out and for letting people know what resolved it for you.

Your latest issue is, unfortunately, a known issue: Config as code - step template usage not updating · Issue #7399 · OctopusDeploy/Issues · GitHub

I’ve added your ticket as an affected user. If you follow that, when it is resolved, a bot will update the issue with the versions the fix will be in.

Please let me know if you have any other questions or concerns.

Best,
Jeremy

Thanks Jeremy.

1 Like

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