azure-pipelines-tasks: Download Pipeline Artifact - wrong match pattern
Type: bug
Enter Task Name: Download Pipeline Artifact uses wrong match pattern
Environment
- Server - Azure Pipelines
- Agent - Hosted
Issue Description
When the build pipeline produces multiple artifacts and we want to choose just a few of them in the release pipeline, the artifact is not downloaded because of a wrong file match pattern. In the sample below out of 3 artifacts we chose 2: IPA and dSYM. Observe how the minimatch pattern tries to filter files which are ALREADY filtered when downloading IPA artifact from the build pipeline:
2019-04-24T07:39:45.4941191Z ##[section]Starting: Download artifact - xxx-CI - IPA
2019-04-24T07:39:45.7521007Z ====================================================================
2019-04-24T07:39:45.7521146Z Task : Download Pipeline Artifact
2019-04-24T07:39:45.7521213Z Description : Download Pipeline Artifact
2019-04-24T07:39:45.7521253Z Version : 1.1.0
2019-04-24T07:39:45.7521292Z Author : Microsoft Corporation
2019-04-24T07:39:45.7521799Z Help : Download named artifact from a pipeline to a local path.
2019-04-24T07:39:45.7521847Z ====================================================================
2019-04-24T07:39:47.0049211Z Download artifact to: d:\a\r1\a/xxx-CI/IPA
2019-04-24T07:39:47.7342021Z Information, Minimatch patterns: [IPA/**,dSYM/**]
2019-04-24T07:39:48.1065063Z Information, Filtered 0 files from the Minimatch filters supplied.
2019-04-24T07:39:48.1842303Z Information, Could not initialize dataport.
2019-04-24T07:39:48.2058422Z Information, Downloaded 0.0 MB out of 0.0 MB (100%).
2019-04-24T07:39:48.2744416Z Information, Downloaded 0.0 MB out of 0.0 MB (100%).
2019-04-24T07:39:48.2745688Z Information, Download completed.
Here’s an example when ALL artifacts are selected for download. Note the minimatch pattern correctly assumes ** pattern here:
2019-04-24T09:22:23.4140803Z ##[section]Starting: Download artifact - xxx-CI - IPA
2019-04-24T09:22:23.9883092Z ====================================================================
2019-04-24T09:22:23.9883237Z Task : Download Pipeline Artifact
2019-04-24T09:22:23.9883289Z Description : Download Pipeline Artifact
2019-04-24T09:22:23.9883350Z Version : 1.1.0
2019-04-24T09:22:23.9883397Z Author : Microsoft Corporation
2019-04-24T09:22:23.9883447Z Help : Download named artifact from a pipeline to a local path.
2019-04-24T09:22:23.9883955Z ====================================================================
2019-04-24T09:22:25.0558180Z Download artifact to: d:\a\r1\a/xxx-CI/IPA
2019-04-24T09:22:25.9683139Z Information, Minimatch patterns: [**]
2019-04-24T09:22:28.3661439Z Information, Filtered 1 files from the Minimatch filters supplied.
2019-04-24T09:22:28.4508002Z Information, Could not initialize dataport.
2019-04-24T09:22:28.4763131Z Information, Downloaded 0.0 MB out of 29.4 MB (0%).
2019-04-24T09:22:33.4876794Z Information, Downloaded 11.9 MB out of 29.4 MB (40%).
2019-04-24T09:22:38.4879766Z Information, Downloaded 28.1 MB out of 29.4 MB (95%).
2019-04-24T09:22:38.7073250Z Information, Downloaded 29.4 MB out of 29.4 MB (100%).
2019-04-24T09:22:38.7073579Z Information, Download completed.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (9 by maintainers)
@Rzpeg Sorry for the inconvenience, we are working on the fix for partial artifact download and will get it deployed to your account by next week.
@fadnavistanmay Can you look at why download is slow for multiple artifacts in case of pipeline artifacts?