Skip to content

Instantly share code, notes, and snippets.

View Damovisa's full-sized avatar
🏠
Home!

Damian Brady Damovisa

🏠
Home!
View GitHub Profile
@Damovisa
Damovisa / WriteAllStepDetails
Last active August 29, 2015 14:16
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"]