From 6d026af4c31f9c94a44ba9c95427ed6fe49aff1a Mon Sep 17 00:00:00 2001 From: John McGehee Date: Tue, 8 Mar 2016 10:26:57 -0800 Subject: [PATCH] Increase the idle slave retention time to 1 day. This extends the time that the slave is available for the Jenkins Workspace viewing feature. Without this change, the slave would disappear after just one minute, and the workspace could no longer be viewed through Jenkins. --- src/main/java/org/jenkinsci/plugins/lsf/BatchSlave.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/lsf/BatchSlave.java b/src/main/java/org/jenkinsci/plugins/lsf/BatchSlave.java index 10f4b0b..07c9e7e 100644 --- a/src/main/java/org/jenkinsci/plugins/lsf/BatchSlave.java +++ b/src/main/java/org/jenkinsci/plugins/lsf/BatchSlave.java @@ -60,7 +60,7 @@ public BatchSlave(String name, label, new SSHLauncher(hostName, port, userName, Secret.toString(password), "", ""), - new BatchRetentionStrategy(1), + new BatchRetentionStrategy(24 * 60), // 1 day Collections.>emptyList()); LOGGER.log(Level.INFO, "Constructing LSF slave {0}", name); }