You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm passing errorActionPreference: stop into my task but write-host "error preference is: $errorActionPreference"
is reporting error preference is: Continue
Version : 4.159.3
Required Information
Type: Bug
Enter Task Name: AzurePowerShell@4
https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzurePowerShellV4
Environment
Issue Description
errorActionPreference not working
I'm passing
errorActionPreference: stop
into my task butwrite-host "error preference is: $errorActionPreference"
is reporting
error preference is: Continue
Version : 4.159.3
Full task definition...
And then the very first line in my script I have
write-host "error preference is: $errorActionPreference"
that prints
error preference is: Continue
The text was updated successfully, but these errors were encountered: