{"action":"opened","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/945","labels_url":"https://api.github.com/repos/gocd/gocd/issues/945/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/945/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/945/events","html_url":"https://github.com/gocd/gocd/issues/945","id":60682153,"number":945,"title":"Option \"Clean Working Directory\" does not work","user":{"login":"webmaster128","id":2603011,"avatar_url":"https://avatars.githubusercontent.com/u/2603011?v=3","gravatar_id":"","url":"https://api.github.com/users/webmaster128","html_url":"https://github.com/webmaster128","followers_url":"https://api.github.com/users/webmaster128/followers","following_url":"https://api.github.com/users/webmaster128/following{/other_user}","gists_url":"https://api.github.com/users/webmaster128/gists{/gist_id}","starred_url":"https://api.github.com/users/webmaster128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmaster128/subscriptions","organizations_url":"https://api.github.com/users/webmaster128/orgs","repos_url":"https://api.github.com/users/webmaster128/repos","events_url":"https://api.github.com/users/webmaster128/events{/privacy}","received_events_url":"https://api.github.com/users/webmaster128/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T16:03:39Z","updated_at":"2015-03-11T16:03:39Z","closed_at":null,"body":"As seen earlier in https://github.com/gocd/gocd/issues/438, the option `Clean Working Directory` not seem to work as expected.\r\n\r\nI have different C++ projects where `Clean Working Directory` is always unchecked. In some of these projects no directory cleanup is performed at all\r\n\r\n```\r\n[go] Start to prepare myproject/1142/build/1/Linux32 on ubuntu32 [/var/lib/go-agent] at Wed Mar 11 16:28:40 CET 2015\r\n\r\n[go] Start updating farcaster at revision 3d5ef877cd3af8cf3e7b06c74ed47b487a8f84c1 from git@bitbucket.org:myuser/myproject.git\r\n```\r\n\r\nIn other projects, build outputs are deleted\r\n\r\n```\r\n[go] Start to prepare myproject/97/my-stage/1/Linux32 on ubuntu32 [/var/lib/go-agent] at Wed Mar 11 16:44:16 CET 2015\r\n\r\n[go] Keeping folder pipelines/myproject/cruise-output\r\n\r\n[go] Keeping folder pipelines/myproject/somelib-source\r\n\r\n[go] Deleting folder pipelines/myproject/build-myproject\r\n\r\n[go] Keeping folder pipelines/myproject/myproject-source\r\n\r\n[go] Start updating myproject at revision 2fa8b97dd9417e2a8b1b9dabb2fc2ad7d5c245d5 from git@bitbucket.org:myuser/myproject.git\r\n```\r\n\r\nThe logic of what is deleted and what is kept looks good assuming I want my working directory to be cleaned. But I don't because re-building the entire C++ project takes 15-20 minutes."}}