None Fatal Exit Code

Hi,
I know you can return “exit 1” to indicate a fatal error to Octopus
Is it possible to return a none fatal exit code to octopus?
Meaning Octopus will highlight an error (in amber) but continue to proceed with the next step.

Regards
B.

Hi Binh,

Thanks for reaching out. In a Powershell script step you could supress the error by outputing it to $null, and then print a message using Write-Warning. That would make Octopus treat that step as “warning” instead of “failed”.

If that doesn’t work, please give us more details about your scenario and why are you trying to achieve this. That will give us a better idea of what options are available.

Thanks,
Dalmiro