Skip to content

Instantly share code, notes, and snippets.

@Damovisa
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Damovisa/7f485cd493f3a5448925 to your computer and use it in GitHub Desktop.
Save Damovisa/7f485cd493f3a5448925 to your computer and use it in GitHub Desktop.
Octopus Powershell script to write a bunch of details for every step in the process
$i = 0
$step = $OctopusParameters["Octopus.Step[$i].Id"]
while ($step -ne $null) {
Write-Output $OctopusParameters["Octopus.Step[$i].Id"]
Write-Output $OctopusParameters["Octopus.Step[$i].Name"]
Write-Output $OctopusParameters["Octopus.Step[$i].TargetRoles"]
Write-Output $OctopusParameters["Octopus.Step[$i].Script.ScriptBody"]
$i++
$step = $OctopusParameters["Octopus.Step[$i].Id"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment