Can I set the following arguments?. Will it resolve my problem

JAVA_ARGS="-Dhudson.model.WorkspaceCleanupThread.disabled=true"

On Friday, April 16, 2021 at 10:02:44 PM UTC+5:30 m.s.sent...@gmail.com 
wrote:

> Agree. You can stash 
> <https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#stash-stash-some-files-to-be-used-later-in-the-build>
>  
> artifacts generated in the workspaces to the controller. Be aware if you 
> are using parallel builds automatic workspace deletion can cause job 
> failures when the workspace is deleted automatically while the job is in 
> progress. This is a known issue with Jenkins - 
> https://issues.jenkins.io/browse/JENKINS-51724
>
> THanks,
> Senthil.
>
> On Fri, Apr 16, 2021 at 3:43 AM 'Björn Pedersen' via Jenkins Users <
> jenkins...@googlegroups.com> wrote:
>
>> 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-use...@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
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/12f2089a-ff4b-4117-8e7f-a6159067e81en%40googlegroups.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/506549cc-7cac-4b30-b890-fb7f8bf6a939n%40googlegroups.com.

Reply via email to