Closed PtrckGdwn closed 2 years ago
Hi @PatrickGodwin, thanks for the suggestion. What exactly would you expect? Would such output variables be enough?
$ErrorCount
$WarningCount
Hi @NowinskiK, yes, those two variables would be enough.
Released in ver.1.10.1041
The task sets these 2 pipeline output variables:
You can use them in any subsequent tasks as any other DevOps variables: $(AdfBuildTaskErrors)
Awesome, thanks @NowinskiK.
Hi
I was wondering if it is possible to have output variables from BuildADFTask@1?
In particular, I would like to capture if there were any build warnings so that I can abort a subsequent publish step.
If there is a way to do this already please let me know. If not, could it be added? I suppose an alternative would be add a TreatWarningAsError input to force a failure on any warning, but that would be a bit less flexible that being able to operate on the warnings generated by the build.
Cheers!