Hi,
I am adding a deployment process to Octopus and I want to add a step template to a step.
I am adding a role which works where I use:
#Add a step to deployment process
$step = New-Object Octopus.Client.Model.DeploymentStepResource
$step.Name = $stepName
$step.Condition = [Octopus.Client.Model.DeploymentStepCondition]::Success
$step.Properties.Add("Octopus.Action.TargetRoles", $role)
Now I want to add a step template to the step but the below code is not working:
$step.Actions.Add("Octopus.Action.ActionTemplates", $stepTemplate)
Is there anywhere I can get a list of the Octopus.Action commands. The “Octopus.Action.ActionTemplates” does not seem to be valid.
I have an $action variable:
$action = New-Object Octopus.Client.Model.DeploymentActionResource
$action.ActionType = "Octopus.Script"
What other ActionTypes are available “Octopus. …?”
Thanks,
Mike