{"action":"closed","issue":{"url":"https://api.github.com/repos/Lingvokot/gitlab-ci-scripts/issues/11","repository_url":"https://api.github.com/repos/Lingvokot/gitlab-ci-scripts","labels_url":"https://api.github.com/repos/Lingvokot/gitlab-ci-scripts/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Lingvokot/gitlab-ci-scripts/issues/11/comments","events_url":"https://api.github.com/repos/Lingvokot/gitlab-ci-scripts/issues/11/events","html_url":"https://github.com/Lingvokot/gitlab-ci-scripts/issues/11","id":133241311,"number":11,"title":"Correct build path","user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T13:26:22Z","updated_at":"2016-02-12T16:12:15Z","closed_at":"2016-02-12T16:12:15Z","body":"Issue:\r\nBuild dir seems to be wrong:\r\n```\r\n$ $BUILD_EXPORT_SCRIPT $CI_BUILD_ID $CI_PROJECT_DIR myapp\r\nCopying /home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project/coverage to /opt/gitlab-ci-builds/builds/myapp/123456/coverage...\r\ncp: cannot stat ‘/home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project/coverage’: No such file or directory\r\nCopying /home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project/plato to /opt/gitlab-ci-builds/builds/myapp/123456/plato...\r\ncp: cannot stat ‘/home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project/plato’: No such file or directory\r\n/home/gitlab-runner/build-export.sh: line 57: cd: /home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project: No such file or directory\r\nCurl to https://img.shields.io/badge/Coverage-100-brightgreen.svg, img path /opt/gitlab-ci-builds/builds/myapp/123456/badge_coverage.svg\r\n/home/gitlab-runner/build-export.sh: line 72: cd: /home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project: No such file or directory\r\nCurl to https://img.shields.io/badge/Maintainability-59.75-yellowgreen.svg, img path /opt/gitlab-ci-builds/builds/myapp/123456/badge_maintainability.svg\r\nCopying /opt/gitlab-ci-builds/builds/myapp/123456 at some-host...\r\nbash: mkdir -p /opt/gitlab-ci-builds/builds/myapp/123456: No such file or directory\r\n/opt/gitlab-ci-builds/builds/myapp/123456: not a regular file\r\nReplacing link on latest build to 123456 at some-host...\r\nln: failed to create symbolic link ‘/opt/gitlab-ci-builds/builds/myapp/latest’: No such file or directory\r\n```\r\nIt's \r\n```\r\n/home/gitlab-runner//home/gitlab-runner/builds/123456/0/my-project/coverage\r\n```\r\nAnd should be \r\n```\r\n/home/gitlab-runner/builds/123456/0/my-project/coverage\r\n```\r\n\r\nRelated issues on *gitlab-runner*:\r\n* [Absolute path in CI_PROJECT_DIR breaks backward-compatibility](https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/302)\r\n* [CI_PROJECT_DIR not absolute](https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/216)\r\n\r\nNeeded changes:\r\n* Correct `BUILD_DIR_PATH` to point on right directory"}}