How to make pipeline fail when a error is outputted from java compiler

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=206267&siteId=1