{"action":"created","issue":{"url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/186","repository_url":"https://api.github.com/repos/ros-industrial/industrial_ci","labels_url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/186/comments","events_url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/186/events","html_url":"https://github.com/ros-industrial/industrial_ci/issues/186","id":240605600,"number":186,"title":"Directory to clone industrial_ci into already exists in gitlab-ci","user":{"login":"miguelprada","id":678580,"avatar_url":"https://avatars1.githubusercontent.com/u/678580?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelprada","html_url":"https://github.com/miguelprada","followers_url":"https://api.github.com/users/miguelprada/followers","following_url":"https://api.github.com/users/miguelprada/following{/other_user}","gists_url":"https://api.github.com/users/miguelprada/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelprada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelprada/subscriptions","organizations_url":"https://api.github.com/users/miguelprada/orgs","repos_url":"https://api.github.com/users/miguelprada/repos","events_url":"https://api.github.com/users/miguelprada/events{/privacy}","received_events_url":"https://api.github.com/users/miguelprada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-05T10:23:42Z","updated_at":"2017-07-05T13:24:13Z","closed_at":null,"body":"I'm attempting to configure `industrial_ci` in a GitLab hosted project and I'm encountering some problems with the default `.gitlab-ci.yml` provided as an example.\r\n\r\nI'm using the docker executor, and the problem I have is that if I clone `industrial_ci` as suggested in that config file, i.e. cloning into parent folder with\r\n\r\n`git clone https://github.com/ros-industrial/industrial_ci ../.ci_config` \r\n\r\nthen the build container complains that the directory already exists:\r\n\r\n```\r\n...\r\n$ git clone https://github.com/ros-industrial/industrial_ci ../.ci_config\r\nfatal: destination path '../.ci_config' already exists and is not an empty directory.\r\nERROR: Job failed: exit code 128\r\n```\r\n\r\nI guess the gitlab runner is mounting some volumes from the runner itself into the executor, and therefore the `../.ci_config` directory exists from previous jobs. In fact, by changing to some other path, the job succeeds on the first attempt but then fails in every subsequent one.\r\n\r\nI can see that this path was introduced in #185 to fix the tests for `industrial_ci` itself, avoiding duplicate `industrial_ci` copies in the source directory, but I think that it is breaking the `for reguar users` use-case."},"comment":{"url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/comments/313101668","html_url":"https://github.com/ros-industrial/industrial_ci/issues/186#issuecomment-313101668","issue_url":"https://api.github.com/repos/ros-industrial/industrial_ci/issues/186","id":313101668,"user":{"login":"ipa-mdl","id":727227,"avatar_url":"https://avatars0.githubusercontent.com/u/727227?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-mdl","html_url":"https://github.com/ipa-mdl","followers_url":"https://api.github.com/users/ipa-mdl/followers","following_url":"https://api.github.com/users/ipa-mdl/following{/other_user}","gists_url":"https://api.github.com/users/ipa-mdl/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-mdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-mdl/subscriptions","organizations_url":"https://api.github.com/users/ipa-mdl/orgs","repos_url":"https://api.github.com/users/ipa-mdl/repos","events_url":"https://api.github.com/users/ipa-mdl/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-mdl/received_events","type":"User","site_admin":false},"created_at":"2017-07-05T13:24:13Z","updated_at":"2017-07-05T13:24:13Z","body":"> Also, by going over the logs in succesful runs, I can see that when I clone it at .ci_config instead of ../.ci_config the folder persists as well, but is removed by the runner or the executor when fetching changes from the repo to be tested.\r\n\r\nSo it works with `.config`? Or only if the repository has changed?\r\nI am thinking about adding `touch $DIR_THIS/CATKIN_IGNORE` to all CI script."}}
{"actor":{"display_login":"ipa-mdl"}}