1

im using DownloadBuildArtifacts@0 and i like to download all the *.ipa files and also the manifest.plist file . when writing : itemPattern: '**/*.ipa it downloading me the ipa file but when i do :

- job: copy_back_files_to_self_hosted_connect
  dependsOn: mac_agent 
  timeoutInMinutes: 10
  pool: Default
  steps:
    - task: DownloadBuildArtifacts@0
      inputs:
        buildType: 'current'
        downloadType: 'single'
        artifactName: 'Artifacts'
        itemPattern: '**/*.ipa|manifest.plist'
        downloadPath: '$(System.ArtifactsDirectory)'
    - task: CopyFiles@2
      inputs:
        SourceFolder: '$(System.ArtifactsDirectory)'
        Contents: '**/*.ipa|manifest.plist'
        TargetFolder: '$(Agent.HomeDirectory)/../${{parameters.FolderCompile}}'

it downloaded me none of the files not ipa and not the manifest.plist
what is the right pattern to download both all the time ?

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
user63898
  • 29,839
  • 85
  • 272
  • 514

2 Answers2

3

Coming from your previous ticket....

You need define your task as below format:

- task: DownloadBuildArtifacts@0
  displayName: 'Download Build Artifacts'
  inputs:
    buildType: 'current'
    downloadType: 'single'
    artifactName: Artifacts
    itemPattern: |
     **/*.ipa
     **/manifest.plist

- task: CopyFiles@2
  displayName: 'Copy Files'
  inputs:
    SourceFolder: '$(System.ArtifactsDirectory)'
    Contents: |
     **/*.ipa
     **/manifest.plist
    TargetFolder: '$(Agent.HomeDirectory)/../${{parameters.FolderCompile}}'

Since .ipa and manifest.plist are all come from the build artifact: Artifacts, both of them are all under the Artifacts folder. So, please also do not forget to use **/manifest.plist to retrieve your needed files.

Mengdi Liang
  • 17,577
  • 2
  • 28
  • 35
1

You can do it in this way:

- task: DownloadBuildArtifacts@0
  inputs:
    buildType: 'current'
    downloadType: 'single'
    artifactName: 'Artifacts'
    itemPattern: |
      **/*.ipa
      manifest.plist
    downloadPath: '$(System.ArtifactsDirectory)'
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114