My Octopus deployments have just started getting this error: Deploy.ps1’ returned non-zero exit code: 1. Deployment terminated and no changes to the deployment code have been made.
When I run the scripts manually on the target server I get no errors and even though I get the error above everything actually installs/configures correctly
See below for the difference between when it errors out and when it succeeds.
ERROR:
SUCCESS:
The logs are not being very helpful and best guess is that the last part missing is from PostDeploy.ps1 which only contains this code:
Write-Host "PostDeploy"
$environment = $OctopusParameters["Environment"]
Write-Host "Environment: '$environment'"
Any idea on how to troubleshoot this further?
This is the raw log: