Last active
August 29, 2015 14:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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