workspace not getting cleared before or after build.

20 views
Skip to first unread message

Ashish Yadav

unread,
Jul 20, 2016, 9:35:13 AM7/20/16
to Jenkins Users
I am currently running Jenkins LTS v1.642.3 on CentOS 6. In my job configs, I am NOT seeing any section or task to clean the workspace before build or even as a Post-Build activity to clean workspace after build. Did this feature get removed somehow?



Mark Waite

unread,
Jul 20, 2016, 9:45:15 AM7/20/16
to Jenkins Users
The git plugin has an "Additional Behaviour" called "Wipe out repository & force clone".  That is available if you're using git.

The Workspace Cleanup Plugin offers before build and after build deletion of the workspace.  Maybe that plugin is not installed?

Mark Waite

On Wed, Jul 20, 2016 at 7:35 AM Ashish Yadav <ashish...@firemon.com> wrote:
I am currently running Jenkins LTS v1.642.3 on CentOS 6. In my job configs, I am NOT seeing any section or task to clean the workspace before build or even as a Post-Build activity to clean workspace after build. Did this feature get removed somehow?



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D3B4E819.21FC2%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Zoratto

unread,
Jul 20, 2016, 9:48:24 AM7/20/16
to jenkins...@googlegroups.com
Le 20 juil. 2016 à 15:34, Ashish Yadav <ashish...@firemon.com> a écrit :

I am currently running Jenkins LTS v1.642.3 on CentOS 6. In my job configs, I am NOT seeing any section or task to clean the workspace before build or even as a Post-Build activity to clean workspace after build. Did this feature get removed somehow?




Ashish Yadav

unread,
Jul 20, 2016, 11:15:48 AM7/20/16
to jenkins...@googlegroups.com
Does the git "Wipe out repository & force clone” behavior only remove the repository or the entire workspace?

Mark Waite

unread,
Jul 20, 2016, 1:53:41 PM7/20/16
to jenkins...@googlegroups.com
It removes the workspace.  That is, it removes the git repository (contained in the .git directory within the workspace) and the contents of the parent of the .git directory (which is what I would call the workspace).  It removes enough that it requires a clone and checkout as part of the next run of that job.

Mark Waite

Reply all
Reply to author
Forward
0 new messages