Azuere DevOps: Mixed topics


How to influence the result of pwsh task?

There might be cases that a command fails but the job is still considered as ok. You might want to influence the outcome of the pwsh task result based on your own criteria. You can determine the outcome of pwsh task by using the exit command.

If you exit the pwsh task with 0 the job will appear as passed and green

exit 0

If you exit the pwsh task with any number different than 0 the job will appear as failed and red:

exit 33