name = "Platform PostDeploy Hook"
description = "This template represents shared steps to be executed after the deployment. This templates was sourced from a mock Git server that reverts changes."
parameter "PostDeployHook.WorkerPool" {
display_settings = {
Octopus.ControlType = "WorkerPool"
}
help_text = ""
label = ""
}
step "run-a-script" {
name = "Run a Script"
action {
action_type = "Octopus.Script"
properties = {
Octopus.Action.RunOnServer = "true"
Octopus.Action.Script.ScriptBody = "# Any changes will eventually be reverted if you are using mockgit.octopus.com.\n# You must configure Platform Hub against your own Git repo to persist changes.\n# The mock Git repo is only useful for testing.\necho \"PostDeploy Hook\""
Octopus.Action.Script.ScriptSource = "Inline"
Octopus.Action.Script.Syntax = "PowerShell"
OctopusUseBundledTooling = "False"
}
worker_pool_variable = "#{PostDeployHook.WorkerPool}"
}
}