目录'/Users/vsts/agent/2.152.1/work/16/a'为空。将不会添加任何东西来构建工件“放置”

时间:2019-06-12 10:37:56

标签: ios azure xamarin azure-devops pipeline

在Azure Deops管道上构建工件时,我正处于警告之下。     由于发布用于Xamarin iOS项目的Artifact,因此无法集成持续部署:

[warning]Directory '/Users/vsts/agent/2.152.1/work/16/a' is empty. Nothing will be added to build artifact 'drop'

我正在为 Xamarin.iOS构建此解决方案,并且需要将其发布到App Center

YAML for PublishBuildartifacts

task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()

用于复制文件的YAML 步骤:

task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:

SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**/*.ipa'
TargetFolder: '$(build.artifactstagingdirectory)'
CleanTargetFolder: true
condition: succeededOrFailed()

1 个答案:

答案 0 :(得分:0)

由您的 Contents 格式的CopyFiles任务引起的错误是不正确的。作为文件夹路径,请勿使用/,将其修改为\

因此将您的Contents更改为:

Contents: **\*.ipa