When want clean workspace the build, can add step a suitable condition the post section your Pipeline job. you to clean workspace the build starts, need add extra configuration be to clean the sources checked from SCM. the examples for details.
How I cleanup workspace Jenkins? am AccuRev version control tool. created freestyle projects Jenkins.
Why Clean Jenkins Workspace? Jenkins Workspace a directory the Jenkins server the project code all dependency files stored. users build new job, Jenkins server default a workspace that job store project code fetched a version control system Github, Gitlab, etc.
Jenkins workspace a storage location a build stores related files. is by successive builds the job we need clean up frequently avoid conflicting files output artifacts.
Learn to clean Jenkins workspace a pipeline 3 easy steps. guide help get started Jenkins pipelines clean workspace a reproducible automated way.
Jenkins - open source automation server enables developers the world reliably build, test, deploy software
Jenkins creates workspace your builds automatically uses to clone code, build node_modules case is JS application well construct entire application directories it.
You clean the workspace build after build.
For reason, would to run entire build a custom workspace, not default under jenkins/workspaces. Jenkins ws-cleanup plugin cleans the default workspace.
You clean workspace Workspace cleanup plugin Jenkins builds executions. Install workspace clean Plug-in
How To Clean Jenkins Workspace? - GeeksforGeeks