Agent - Hosted or Private:
I import my project [https://github.com/RiseSoho/RiseUnity] to vsts and CI it .
2018-05-18T09:38:47.8669682Z ##[section]Starting: Publish Artifact
2018-05-18T09:38:47.8672893Z ==============================================================================
2018-05-18T09:38:47.8673095Z Task : Publish Build Artifacts
2018-05-18T09:38:47.8673247Z Description : Publish build artifacts to Visual Studio Team Services/TFS or a file share
2018-05-18T09:38:47.8673365Z Version : 1.133.0
2018-05-18T09:38:47.8673466Z Author : Microsoft Corporation
2018-05-18T09:38:47.8673817Z Help : More Information
2018-05-18T09:38:47.8673977Z ==============================================================================
2018-05-18T09:38:48.1337734Z ##[warning]Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.
2018-05-18T09:38:48.1355716Z ##[section]Finishing: Publish Artifact
You don't copy anything to $(build.artifactstagingdirectory) in your definition. You are missing a 'Copy Files'-Task before the 'publish artifact'
@JohannesDrexler is correct. You can also avoid the copy and pass a directory to publish other than the artifacts directory. Note that copy takes all the mini match patterns and publish just take a directory.
Thank you guys, thank you very much.
I am having same issue. I tried all the above options but stuck on this one.
Fresher Joe :- Was this resolved for you?
@sshrishi did you manage to resolve the issue?
Yes
Get Outlook for Androidhttps://aka.ms/ghei36
From: Molik Miah notifications@github.com
Sent: Wednesday, January 16, 2019 9:52:11 AM
To: Microsoft/azure-pipelines-tasks
Cc: sshrishi; Mention
Subject: Re: [Microsoft/azure-pipelines-tasks] Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'. (#7247)
@sshrishihttps://github.com/sshrishi did you manage to resolve the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/azure-pipelines-tasks/issues/7247#issuecomment-454829501, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aq_xARAJ7-VgmJHkqQupMc2YEVjWzA_qks5vD0qrgaJpZM4UEb-6.
@sshrishi , Yes, It's resolved for me.
can we get information on how you resolved this issue as I've hit the same wall.
thanks!
@sshrishi and @Fisher-Joe
can we get information on how you resolved this issue as I've hit the same wall.
thanks!
@sshrishi and @Fisher-Joe
Do you still have issue?
@SuperDuperOne For more information on the Copy Files Task, take a look at: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-files?view=azure-devops&tabs=yaml. Specifically for my setup running Ubuntu 18.04, the following block was implemented before Publish in azure_pipelines.yaml
:
```
Most helpful comment
You don't copy anything to $(build.artifactstagingdirectory) in your definition. You are missing a 'Copy Files'-Task before the 'publish artifact'