We have our shared workspaces deleted every 30 days, which we don’t want, and have read posts regarding the workspace clean up settings. I`m unable to restart jenkins as we are in the middle of our release build window but can i set system parameters via the Manage Jenkins → Script console?
I want to set hudson.model.WorkspaceCleanupThread.disabled=true to see if this stops the workspaces from being deleted.
I haven’t used the script console before and i’m reading up on it now.
Do I just enter hudson.model.WorkspaceCleanupThread.disabled=true into the script console or need to create a script with extra bits? I`m guessing this is temporary until i set it as a java command at startup?
This will last until Jenkins is restarted.
To have that permanent either add exactly this line to an init script
or set a java property for the java command