{"action":"created","issue":{"url":"https://api.github.com/repos/nskvortsov/deployer/issues/71","labels_url":"https://api.github.com/repos/nskvortsov/deployer/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/nskvortsov/deployer/issues/71/comments","events_url":"https://api.github.com/repos/nskvortsov/deployer/issues/71/events","html_url":"https://github.com/nskvortsov/deployer/issues/71","id":54059182,"number":71,"title":"SMB deployer attempts to copy artifacts to top level of host, rather than share/subdir","user":{"login":"nskvortsov","id":539027,"avatar_url":"https://avatars.githubusercontent.com/u/539027?v=3","gravatar_id":"","url":"https://api.github.com/users/nskvortsov","html_url":"https://github.com/nskvortsov","followers_url":"https://api.github.com/users/nskvortsov/followers","following_url":"https://api.github.com/users/nskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/nskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/nskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskvortsov/subscriptions","organizations_url":"https://api.github.com/users/nskvortsov/orgs","repos_url":"https://api.github.com/users/nskvortsov/repos","events_url":"https://api.github.com/users/nskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/nskvortsov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-12T14:28:30Z","updated_at":"2015-01-12T14:28:30Z","closed_at":"2015-01-12T14:28:30Z","body":"Unable to get SMB deployment to work. After enabling debug logging on the build agent, it appears from the log output that the plugin is not constructing the destination path correctly. It seems as though the plugin is attempting to copy the artifacts to the root of the SMB host, rather than to the host/share/subdir path.\n\nBelow is an excerpt from the log output -- note that the \"target\" output below looks correct, but the \"destDirectory\" and \"destFile\" files look incorrect.\n\n[2013-01-08 20:57:47,786]  DEBUG -    jetbrains.buildServer.AGENT - Trying to connect with following parameters:\nusername=[myuser]\npassword=[mypassword]\ndomain=[MYDOMAIN]\ntarget=[smb://myhost/myshare/mysubdir/] \n[2013-01-08 20:57:47,787]  DEBUG -    jetbrains.buildServer.AGENT - Uploading source=[C:\\ProgramData\\JetBrains\\TeamCity\\BuildAgent\\work\\c1cbabd2fbe1f943\\myartifact.txt] to \ndestDirectory=[smb://myhost/] destFile=[smb://myhost/myartifact.txt] \n[2013-01-08 20:57:47,826]  ERROR -    jetbrains.buildServer.AGENT - Trying to connect with following parameters:\nusername=[myuser]\npassword=[mypassword]\ndomain=[MYDOMAIN]\ntarget=[smb://myhost/myshare/mysubdir/] \njcifs.smb.SmbException: The network name cannot be found.\n\tat jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:563)\n\tat jcifs.smb.SmbTransport.send(SmbTransport.java:663)\n\tat jcifs.smb.SmbSession.send(SmbSession.java:238)\n\tat jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)\n\tat jcifs.smb.SmbFile.doConnect(SmbFile.java:911)\n\tat jcifs.smb.SmbFile.connect(SmbFile.java:954)\n\tat jcifs.smb.SmbFile.connect0(SmbFile.java:880)\n\tat jcifs.smb.SmbFile.open0(SmbFile.java:972)\n\tat jcifs.smb.SmbFile.open(SmbFile.java:1006)\n\tat jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)\n\tat jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)\n\tat jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)\n\tat jcifs.smb.SmbFile.getOutputStream(SmbFile.java:2853)\n\tat jetbrains.buildServer.deployer.agent.smb.SMBBuildProcessAdapter.upload(SMBBuildProcessAdapter.java:131)\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/nskvortsov/deployer/issue/5\n- Originally reported by: Matt B\n- Originally created at: 2013-01-08T23:47:30.110\n"},"comment":{"url":"https://api.github.com/repos/nskvortsov/deployer/issues/comments/69576969","html_url":"https://github.com/nskvortsov/deployer/issues/71#issuecomment-69576969","issue_url":"https://api.github.com/repos/nskvortsov/deployer/issues/71","id":69576969,"user":{"login":"nskvortsov","id":539027,"avatar_url":"https://avatars.githubusercontent.com/u/539027?v=3","gravatar_id":"","url":"https://api.github.com/users/nskvortsov","html_url":"https://github.com/nskvortsov","followers_url":"https://api.github.com/users/nskvortsov/followers","following_url":"https://api.github.com/users/nskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/nskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/nskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskvortsov/subscriptions","organizations_url":"https://api.github.com/users/nskvortsov/orgs","repos_url":"https://api.github.com/users/nskvortsov/repos","events_url":"https://api.github.com/users/nskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/nskvortsov/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T14:28:30Z","updated_at":"2015-01-12T14:28:30Z","body":"Thanks!\n\n----------------------------------------\nOriginal comment by: Matt B\n"}}