Thanks Vjuranek.
Yes, we use Workspace cleanup plugin but I was looking for some scripted 
way to wipe out workspace for number for jobs in one go.
I will give a try to build.getWorkspace().deleteRecursive() .


On Thursday, August 30, 2012 7:42:11 PM UTC+1, vjuranek wrote:
>
> Hi, 
> what about Workspace cleanup plugin [1] or Distributed workspace clean 
> plugin [2]? 
> If you are searching for a function how to delete workspace, it's 
> build.getWorkspace().deleteRecursive() 
>
> HTH 
> Vojta 
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin 
> [2] 
> https://wiki.jenkins-ci.org/display/JENKINS/Hudson+Distributed+Workspace+Clean+plugin
>  
>
> ----- Original Message ----- 
> From: "BK" <[email protected] <javascript:>> 
> To: [email protected] <javascript:> 
> Sent: Thursday, August 30, 2012 5:52:46 PM 
> Subject: CLI option /Groovy script to wipe out work space 
>
> Hi, 
>
>
> We have single Jenkins Master hosting number of Jobs.It is very laborious 
> to use Jenkins console to wipe out workspace from Jobs. I am looking for 
> automated way to wipe out workspace. 
> I have explored Jenkins CLI but it does not contain any command for 
> deletion of workspace.I was trying to put together a groovy script to 
> delete the workspace but could not find appropriate functions in Jenkins 
> API . has anyone faced similar issue ? Please help !! 
>
>
> Thanks in Advance 
> BK. 
>

Reply via email to