I have a task that runs Cypress:
-ErrorAction SilentlyContinue
cd $(System.DefaultWorkingDirectory)/_ClientWeb-Build-CI/ShellArtifact/
npx cypress run
And I've set the ErrorActionPreference
to continue
. But when my Cypress fails:
##[error]PowerShell exited with code '1'.
The next task is canceled and the release failed. How do I continue the release even Cypress failed, and is it possible to give a boolean a true/false value based on the Cypress task result?