{"id":2000,"date":"2017-12-07T07:38:31","date_gmt":"2017-12-07T07:38:31","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2000"},"modified":"2020-01-09T09:28:45","modified_gmt":"2020-01-09T09:28:45","slug":"workspace-cleanup-error","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/workspace-cleanup-error\/","title":{"rendered":"WorkSpace Cleanup Error"},"content":{"rendered":"<p><strong>pasupuleti2 created the topic: WorkSpace Cleanup Error<\/strong><br \/>\nRajesh,<\/p>\n<p>When I chose &#8220;Delete workspace before build starts&#8221; option at Build Environment I got below error.<\/p>\n<p>Please let me know how to fix this issue.<\/p>\n<p>[EnvInject] &#8211; Loading node environment variables.<br \/>\nBuilding on master in workspace D:\\Jenkins\\workspace\\TSFW &#8211; Bit Bucket<br \/>\n[WS-CLEANUP] Deleting project workspace&#8230;<br \/>\nERROR: [WS-CLEANUP] Cannot delete workspace: D:\\Jenkins\\workspace\\TSFW &#8211; Bit Bucket\\.git\\objects\\pack\\pack-095203004544c62ca6ea74ab1260f332c46e8c82.idx<br \/>\nERROR: Cannot delete workspace: D:\\Jenkins\\workspace\\TSFW &#8211; Bit Bucket\\.git\\objects\\pack\\pack-095203004544c62ca6ea74ab1260f332c46e8c82.idx<br \/>\nEmail was triggered for: Failure &#8211; Any<br \/>\nSending email for trigger: Failure &#8211; Any<br \/>\nRequest made to compress build log<br \/>\nSending email to:<br \/>\nFinished: FAILURE<\/p>\n<p><strong>rajeshkumar replied the topic: WorkSpace Cleanup Error<\/strong><br \/>\nIts reported problem with in windows with jenkins. Check following&#8230;<br \/>\n1. You Jenkins and git related plugins are up to date.<br \/>\n2. You surely are using gitk.cmd and not git.exe directly. Check what your Jenkins config for Git installs are and that your job is using the one that calls git.exe directly.<br \/>\n3. try to use the git.exe from cmd directory instead of using from bin directory.<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @<a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\"> twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>pasupuleti2 created the topic: WorkSpace Cleanup Error Rajesh, When I chose &#8220;Delete workspace before build starts&#8221; option at Build Environment I got below error. Please let me know how to&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[258],"class_list":["post-2000","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-error"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2000"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2000\/revisions"}],"predecessor-version":[{"id":2001,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2000\/revisions\/2001"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}