{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4675","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4675/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4675/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4675/events","html_url":"https://github.com/travis-ci/travis-ci/issues/4675","id":102027085,"number":4675,"title":"Wrong (missing?) artifacts on OS X workers for deployment","user":{"login":"Snaipe","id":977973,"avatar_url":"https://avatars.githubusercontent.com/u/977973?v=3","gravatar_id":"","url":"https://api.github.com/users/Snaipe","html_url":"https://github.com/Snaipe","followers_url":"https://api.github.com/users/Snaipe/followers","following_url":"https://api.github.com/users/Snaipe/following{/other_user}","gists_url":"https://api.github.com/users/Snaipe/gists{/gist_id}","starred_url":"https://api.github.com/users/Snaipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snaipe/subscriptions","organizations_url":"https://api.github.com/users/Snaipe/orgs","repos_url":"https://api.github.com/users/Snaipe/repos","events_url":"https://api.github.com/users/Snaipe/events{/privacy}","received_events_url":"https://api.github.com/users/Snaipe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T00:06:03Z","updated_at":"2015-08-20T00:16:04Z","closed_at":"2015-08-20T00:13:55Z","body":"It seems that the deployment script for GitHub releases on OS X workers crashes for my setup, complaining that it cannot find the files I want to deploy -- however, the deployment works correctly on linux boxes:\r\n\r\n```\r\nshell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\r\npwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\r\npwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\r\nfatal: Unable to read current working directory: No such file or directory\r\n/Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/octokit-4.0.1/lib/octokit/client/releases.rb:86:in `initialize': No such file or directory - criterion-test-osx-x86_64.tar.bz2 (Errno::ENOENT)\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/octokit-4.0.1/lib/octokit/client/releases.rb:86:in `new'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/octokit-4.0.1/lib/octokit/client/releases.rb:86:in `upload_asset'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/provider/releases.rb:118:in `block in push_app'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/provider/releases.rb:102:in `each'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/provider/releases.rb:102:in `push_app'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/provider.rb:141:in `block in deploy'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/cli.rb:41:in `fold'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/provider.rb:141:in `deploy'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/cli.rb:32:in `run'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/lib/dpl/cli.rb:7:in `run'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/gems/dpl-1.7.20/bin/dpl:5:in `<top (required)>'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/bin/dpl:23:in `load'\r\n        from /Users/travis/.rvm/gems/ruby-1.9.3-p547/bin/dpl:23:in `<main>'\r\nfailed to deploy\r\n```\r\n(Full log can be found [here](https://travis-ci.org/Snaipe/Criterion/jobs/76377074).)\r\n\r\nI made of course sure that the file was, in fact, there in `before_deploy`:\r\n\r\n```\r\n$ pwd && ls\r\n/Users/travis/build/Snaipe/Criterion/build\r\n[snip]\r\ncriterion-test-osx-x86_64.tar.bz2\r\n[snip]\r\n```\r\n\r\nI first thought that it was failing because I was doing an out-of-source build, and that somehow the deploy script changed the work directory back to the source root, so I changed the build script to create the archive in the source root and cd'd back to it before the deploy rule, [but to no avail](https://travis-ci.org/Snaipe/Criterion/jobs/76379277).\r\n\r\nI'm going to try another variation of the build script to create the archive out of the source directory and see how it goes since it seems that you are manipulating the git stash before deploying, and report back with the results.\r\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/132831291","html_url":"https://github.com/travis-ci/travis-ci/issues/4675#issuecomment-132831291","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/4675","id":132831291,"user":{"login":"Snaipe","id":977973,"avatar_url":"https://avatars.githubusercontent.com/u/977973?v=3","gravatar_id":"","url":"https://api.github.com/users/Snaipe","html_url":"https://github.com/Snaipe","followers_url":"https://api.github.com/users/Snaipe/followers","following_url":"https://api.github.com/users/Snaipe/following{/other_user}","gists_url":"https://api.github.com/users/Snaipe/gists{/gist_id}","starred_url":"https://api.github.com/users/Snaipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snaipe/subscriptions","organizations_url":"https://api.github.com/users/Snaipe/orgs","repos_url":"https://api.github.com/users/Snaipe/repos","events_url":"https://api.github.com/users/Snaipe/events{/privacy}","received_events_url":"https://api.github.com/users/Snaipe/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T00:16:04Z","updated_at":"2015-08-20T00:16:04Z","body":"@BanzaiMan I somehow missed that, sorry.\r\n\r\nHowever, what I find confusing is that `git stash --all` seems to fail on linux workers then, which made me think it was an issue with the OS X worker."}}