From 8288bd5bbacbf8cd83ad89f52a9230a2fc2a0c43 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 9 Feb 2009 19:35:49 +0000 Subject: [PATCH] added a test case for http://www.nabble.com/unable-to-define-slave-in-%22use-for-tied-jobs-only%22-td21835058.html#a21835058 git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15164 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Slave.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index a791a54e0f..aeb10ee296 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -184,6 +184,10 @@ public abstract class Slave implements Node, Serializable { return mode; } + public void setMode(Mode mode) { + this.mode = mode; + } + public RetentionStrategy getRetentionStrategy() { return retentionStrategy == null ? RetentionStrategy.Always.INSTANCE : retentionStrategy; }