Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Jan 6, 2022
1 parent 761bf6a commit 3b315d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ $spacesList = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "spaces?skip=0
foreach ($space in $spacesList.Items)
{
Write-Host "Queueing a runbook run for $($space.Name) using the space id $($space.Id). The runbook will run on $AdminInstanceUrl for the environment $AdminEnvironmentName in the space $AdminSpaceName"
octo run-runbook --project "Standards" --runbook "Enforce Space Standards" --environment $AdminEnvironmentName --variable="Project.SpaceStandard.SpaceId:$($space.Id)" --server="$AdminInstanceUrl" --apiKey="$AdminInstanceApiKey" --space="$AdminSpaceName"
Write-Host "Running command: octo run-runbook --project ""Standards"" --runbook ""Enforce Space Standards"" --environment ""$AdminEnvironmentName"" --variable=""Project.SpaceStandard.SpaceId:$($space.Id)"" --server=""$AdminInstanceUrl"" --apiKey=""$AdminInstanceApiKey"" --space=""$AdminSpaceName"" to queue the runbook"
octo run-runbook --project "Standards" --runbook "Enforce Space Standards" --environment "$AdminEnvironmentName" --variable="Project.SpaceStandard.SpaceId:$($space.Id)" --server="$AdminInstanceUrl" --apiKey="$AdminInstanceApiKey" --space="$AdminSpaceName"
}

0 comments on commit 3b315d9

Please sign in to comment.