'The Name Contains Invalid Characters Error while uploading result file via cloc plugin in Azure DevOps
I am using the Count Lines of Code plugin in my Azure DevOps pipeline to count the lines of code for my JavaScript source code, however the tasks fails while uploading the file with below error.
Uploading result file from e:\cache\Agent03\11\s\cloc.result.md
##[error]Unable to process command '##vso[task.addattachment type=Distributedtask.Core.Summary;name=cloc e:\cache\Agent03\11\s\PSP.Web.UI\app\scripts\;]e:\cache\Agent03\11\s\cloc.result.md' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]Name contains invalid characters. (", <, >, |, , �, �, �, �, �, �, �, �, ,
Attaching the screenshot of the values provided in the plugin for references, I want this plugin to display the result on the build summary. I also noticed that this task by default creates the result in cloc.result.md file. I tried passing arguments explicitly by different file names but it still took the same file name.
Can you please guide me how can I resolve this error?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


