I'm surprised that doesn't work in a pipeline context.  I thought I had
integration tests which were checking that.  I'll need to double check.
Please submit a bug report with steps to duplicate the problem.

Pipeline has the deleteDir() step which will delete the contents of the
current directory, or, when wrapped in a dir() step, it will delete the
contents of that directory.  Refer to
https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#deletedir-recursively-delete-the-current-directory-from-the-workspace
for
the documentation.  That will give you explicit control to delete the
contents of the directory from within the pipeline step, without adding the
WipeWorkspace extension to your checkout() step.

In your pipeline, are you using the git() step or the more general purpose
checkout() step?  If you're using the git() step, you may need to switch to
the checkout() step.

Mark Waite

On Thu, Apr 20, 2017 at 3:45 AM ishan jain <ishanja...@gmail.com> wrote:

> I am selecting below option in my build pipeline, where internally i would
> checkout a repo and work on it. But the worspace with the repository clone
> is still there in every job execution and this is creating problems for me.
> I have to manually delete the worspace on the server everytime to make it
> work and this is so annoying.
> Also, i think this cleaning option is not applicable for the workspaces
> created on slave nodes, but i am not sure. How can i make sure that the
> workspace is wiped-out everytime with a job, on master and on every slave
> node it will use.
>
>
>
> <https://lh3.googleusercontent.com/-xJiJuU1VAPY/WPiBiAFSz5I/AAAAAAAAE08/wpuerL_UaqE6S1hNuMatTm2n10r_6_5RACLcB/s1600/j.JPG>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b5a50c25-ed64-42b6-a106-c473260cb5cb%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b5a50c25-ed64-42b6-a106-c473260cb5cb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFkzrWkYbTjPG_kDF4aXhQ%2BX4w6OzEeM%2BnavWBw6i3cSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to