Azure-pipelines-tasks: Cache task ignores the .artifactignore file

Created on 13 Nov 2019  路  3Comments  路  Source: microsoft/azure-pipelines-tasks

Question, Bug, or Feature?
Type: Bug

Enter Task Name: Cache

Environment

Azure Pipelines

  • Agent - Hosted or Private: Hosted

Issue Description

Cache task ignore the .artifactignore file when creating the cached set of files.

e.g.:
this build did not exclude any file when creating the cache:

https://dev.azure.com/CppBuild/CppBuildTasks/_build/results?buildId=2881&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=e25532b4-f6bc-4056-8513-07e3e816ef7f

PipelineCaching bug regression

Most helpful comment

Hi @lukka - Thanks for reminding us of this. For now, you can fall back to old behavior by setting the variable AZP_CACHING_CONTENT_FORMAT to Files.

All 3 comments

Hi @lukka - Thanks for reminding us of this. For now, you can fall back to old behavior by setting the variable AZP_CACHING_CONTENT_FORMAT to Files.

I think we should work on the glob pattern for input path - https://github.com/microsoft/azure-pipelines-tasks/issues/11219 , which will encompass the functionality that .artifactignore provides.

Hi @lukka - We are going to track this here - https://github.com/microsoft/azure-pipelines-tasks/issues/11219 - support for globing for caching task.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings