Azure-Player / azure.datafactory.devops

Azure DevOps Deployment Tasks for Azure Data Factory objects
MIT License
39 stars 21 forks source link

Pipeline output variable from BuildADFTask@1? #65

Closed PtrckGdwn closed 2 years ago

PtrckGdwn commented 2 years ago

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!

NowinskiK commented 2 years ago

Hi @PatrickGodwin, thanks for the suggestion. What exactly would you expect? Would such output variables be enough?

$ErrorCount
$WarningCount
PtrckGdwn commented 2 years ago

Hi @NowinskiK, yes, those two variables would be enough.

NowinskiK commented 2 years ago

Released in ver.1.10.1041

NowinskiK commented 2 years ago

The task sets these 2 pipeline output variables:

You can use them in any subsequent tasks as any other DevOps variables: $(AdfBuildTaskErrors)

PtrckGdwn commented 2 years ago

Awesome, thanks @NowinskiK.