-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workhelp wantedstaletriage
Description
Task name
DotNetCoreCLI
Task version
2
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 suggestedBuildQualityCheckstask 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?
EwanNoble and rolfbjarne
Metadata
Metadata
Assignees
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workhelp wantedstaletriage