在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()
答案 0 :(得分:0)
由您的 Contents 格式的CopyFiles任务引起的错误是不正确的。作为文件夹路径,请勿使用/
,将其修改为\
。
因此将您的Contents
更改为:
Contents: **\*.ipa