Git File Browser

User: usernamegoeshere | Repo: platformhubrepo
← Back
security-predeploy-hook.ocl
name = "Security PreDeploy Hook"
description = "This template represents shared steps to be executed before the deployment. This templates was sourced from a mock Git server that reverts changes."

parameter "PreDeployHook.Worker" {
    display_settings = {
        Octopus.ControlType = "WorkerPool"
    }
    help_text = ""
    label = ""
}

step "predeploy" {
    name = "PreDeploy"

    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 \"PreDeploy Script\""
            Octopus.Action.Script.ScriptSource = "Inline"
            Octopus.Action.Script.Syntax = "PowerShell"
            OctopusUseBundledTooling = "False"
        }
        worker_pool_variable = "#{PreDeployHook.Worker}"
    }
}