-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
I would love to be able to have my jobs automatically return the workspace to a clean state after execution - but otherwise leave the cloned repo present at the end of a job automatically. I could do this myself in a post step, but seems like it would be nice to be able to just define this in the SCM section and have it done automatically.
Even better would be ability to say "Clean after job, if:
{stable|unstable|failed}" - to allow leaving the workspace around for examination if the job fails, but otherwise clean when done.
Can you explain why you want to clean after build? It seems like you would be intentionally sacrificing diagnostic information which is in the workspace in order to save the disc space used by the files which the build generated.
I'm accustomed to thinking of disc space as very low cost, while diagnostic time is very expensive.