Best idea is to avoid relying on the workspace being preserved at all . So if you are deplyoing something, then do it by installing/copying/whatever the final artifacts in a place outside the workspace.
m.s.sent...@gmail.com schrieb am Freitag, 16. April 2021 um 03:18:23 UTC+2: > This is a system property that should be set when starting up jenkins. You > would want to set *hudson.model.WorkspaceCleanupThread.disabled* to true > to disable deletion of workspaces. > > Usage is documented here: > https://www.jenkins.io/doc/book/managing/system-properties/ > > On Thu, Apr 15, 2021 at 11:09 AM DHAVAL JAISWAL <dhav...@gmail.com> wrote: > >> Workspace on Slave node is deleted if the Job is not running/active from >> Master Jenkins for some days. >> >> How shall I fix this issue? >> >> While referring to some forum advising to fix >> *hudson.model.WorkspaceCleanupThread.disabled* [ false ]. However, I am >> unable to find this parameter. >> >> Guide me on how can I fix this issuer permanently & save my workspace and >> build. >> >> I see one option in Jenkins is DISCARD OLD BUILD. However, I assume that >> check is to retain the build (to see the history) on Master Jenkins. >> >> If needed I can help with some more information. >> >> -- >> 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/CAH5ShBiSTXMYHuhW%2Bthxj3yMAvAOQWqcxgAUJwSM7ZM4kvGBYA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/CAH5ShBiSTXMYHuhW%2Bthxj3yMAvAOQWqcxgAUJwSM7ZM4kvGBYA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/12f2089a-ff4b-4117-8e7f-a6159067e81en%40googlegroups.com.