Dealogic / cloc-vsts-extension

Build task for Visual Studio Team Services (VSTS) to count lines of code.
MIT License
5 stars 2 forks source link

The Name Contains Invalid Characters Error while uploading result file via cloc plugin in Azure DevOps #20

Open SRP07 opened 2 years ago

SRP07 commented 2 years ago

Hi,

I am using the Count Lines of Code plugin in my azure devops pipeline to count the lines 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? image

image