You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server
Question
If we get the project pattern wrong when using the DotNetCoreCLI@2 task, the task just throws a warning message.
##[warning]Project file(s) matching the specified pattern were not found.
Is there a way to fail the task if no projects are found?
Or fail if no tests are found, as suggested in this StackOverflow post?
The suggested BuildQualityChecks task checking for warning messages is not a good idea as other steps throwing warnings will cause it to fail, thereby adding more to maintenance work.
If no, is there a general pattern we should adopt to avoid misconfigured false positive feedback from pipelines?
The text was updated successfully, but these errors were encountered:
Task name
DotNetCoreCLI
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server
Question
If we get the project pattern wrong when using the
DotNetCoreCLI@2
task, the task just throws a warning message.The suggested
BuildQualityChecks
task checking for warning messages is not a good idea as other steps throwing warnings will cause it to fail, thereby adding more to maintenance work.The text was updated successfully, but these errors were encountered: