{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/901","labels_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/901/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/901/events","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/901","id":119273928,"number":901,"title":"Copy and Publish Build Artifacts doesn't work on vso agent on Ubuntu.","user":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars.githubusercontent.com/u/1390976?v=3","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T06:22:40Z","updated_at":"2015-11-28T07:15:07Z","closed_at":null,"body":"Suddenly, my \"Copy and aPublish Build Artifacts\" definition causes an error. It worked when I tried  a few weeks before. \r\n\r\nI guess the reason could be the \"Target Path\". As I look at the log file, the \"target path\" is for Windows. Also, I can't see any input box for \"target path\" on the Visual Studio Team Services screen. \r\n\r\n```\r\n[Debug] 2015-11-28T05:51:26.170Z: CopyRoot: /home/azureuser/myagent/_work/build/e7ec74aff796611c47e105ff2ed0607fe50da60075a879683e605cd12220105f/repo\r\n##[Debug] 2015-11-28T05:51:26.171Z: Contents: **/build/libs/!(buildSrc)*.?ar\r\n##[Debug] 2015-11-28T05:51:26.171Z: ArtifactName: drop\r\n##[Debug] 2015-11-28T05:51:26.171Z: ArtifactType: Container\r\n##[Debug] 2015-11-28T05:51:26.171Z: TargetPath: \\\\my\\share\\PartsUnlimitedMRP.CI\\133\r\n##[Debug] 2015-11-28T05:51:26.171Z: \r\n##[Debug] 2015-11-28T05:51:26.172Z: cwd: /home/azureuser/myagent/_work/build/e7ec74aff796611c47e105ff2ed0607fe50da60075a879683e605cd12220105f\r\n```\r\n\r\nHowever, On the task.json, I can see the target path definition. \r\n\r\n[CopyPublishBuildArtifacts/task.json](https://github.com/Microsoft/vso-agent-tasks/blob/master/Tasks/CopyPublishBuildArtifacts/task.json#L57-L66)"},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/comments/160255048","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/901#issuecomment-160255048","issue_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/901","id":160255048,"user":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars.githubusercontent.com/u/1390976?v=3","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T07:15:07Z","updated_at":"2015-11-28T07:15:07Z","body":"I tried to set TargetPath using a bad know-how. However, it still didn't work. I noticed that the artifacttype should be server however, the log said that it is \"Container\"\r\n\r\n----- a new log.\r\nCopyRoot: /home/azureuser/myagent/_work/build/e7ec74aff796611c47e105ff2ed0607fe50da60075a879683e605cd12220105f/repo\r\nContents: **/build/libs/!(buildSrc)*.?ar\r\nArtifactName: drop\r\nArtifactType: Container\r\nTargetPath: /home/azureuser/myagent/server\r\ncwd: /home/azureuser/myagent/_work/build/e7ec74aff796611c47e105ff2ed0607fe50da60075a879683e605cd12220105f"}}