scm: How to restore a workspace to "pristine"?
![]()
How can a restore a workspace to a "pristine" state? e.g. identical if I just cloned it?
In git, I can do: "git reset .; git checkout .; git clean -xfd" to restore a check out to a pristine state.
How do I do this with the 'scm' command?
Details:
My specific requirements are I'm using the Jenkins plugin and want to ensure the workspace is clean before the next build happens. I am currently just blowing everything away and re-loading the workspace, but this is slow.
|
One answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.