Hi Octopus Deploy,
I have a question regarding logging during Post-deployment Configuration Script.
Using a Powershell script, it appears that outputs such as Write-Output etc. are ignored, they do not appear in the log. I have looked in the Task Log, with Verbose as the Log detail level, and I can see that the script is executed: Executing …\Octopus.Action.CustomScripts.PostDeploy.ps1
but no further details appear. I noticed there was a forum topic from 2011 regarding missing logging, but I assume the mentioned bug has long been fixed?
Sorry to hear that you are having issues - I’ve just double-checked this on my development machine and it is working as expected.
Can you tell me what version of Octopus you are running?
If your Write-Output just outputting a variable? If so, is it a variable that’s populated at that stage of your deployment cycle? If so, have you tried adding a static string to the output to see if that’s being posted?