TennisBowling :
Im using azure pipelines to compile all my java programs, but when a program doesn't compile, it throws an error on the bash, but dosent fail the pipeline. the yaml file is https://github.com/gitcloneguy/Java-Projects/blob/master/azure-pipelines.yml
Kontekst :
You can use Bash task with option failOnStderr.
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops