azure-pipelines-tasks: Error publishing code coverage report: path too long
It seems that I am hitting a path too long problem, which is weird as the whole project is running on Linux.
Environment
- Server:
VSTS
, accountticketbr
, TPTicketShop
, Build id:215
- Agent: Private:
Ubuntu 18.04
, running agent2.140.0
Issue Description
When publishing code coverage report I get an error:
Task: PublishCodeCoverageResults@1
Log: Fail to upload '/agent/_works/<REDACTED>/1/s/coverage/src/<REDACTED>' due to 'TF400889: The following path contains more than the allowed 259 characters: Code Coverage Report_215/src/<REDACTED>. Specify a shorter path.'.
Yaml:
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage'
condition: succeededOrFailed()
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (9 by maintainers)
We are investigating a way to remove this restriction on the service or provide a viable alternate on the client side. We don’t have a timeline yet but will provide an update once we have more to share.
Thanks, Madhuri
@yacaovsnc Ok, but it is still an issue, right? It needs fixing.