提交 bf9c475f 编写于 作者: M mindless

[FIXED HUDSON-4405] trim remoteFS value to avoid hard-to-notice error


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21557 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bcd7e87b
...@@ -142,7 +142,7 @@ public abstract class Slave extends Node implements Serializable { ...@@ -142,7 +142,7 @@ public abstract class Slave extends Node implements Serializable {
this.description = nodeDescription; this.description = nodeDescription;
this.numExecutors = numExecutors; this.numExecutors = numExecutors;
this.mode = mode; this.mode = mode;
this.remoteFS = remoteFS; this.remoteFS = Util.fixNull(remoteFS).trim();
this.label = Util.fixNull(labelString).trim(); this.label = Util.fixNull(labelString).trim();
this.launcher = launcher; this.launcher = launcher;
this.retentionStrategy = retentionStrategy; this.retentionStrategy = retentionStrategy;
...@@ -367,7 +367,7 @@ public abstract class Slave extends Node implements Serializable { ...@@ -367,7 +367,7 @@ public abstract class Slave extends Node implements Serializable {
if(value.startsWith("\\\\") || value.startsWith("/net/")) if(value.startsWith("\\\\") || value.startsWith("/net/"))
return FormValidation.warning("Are you sure you want to use network mounted file system for FS root? " + return FormValidation.warning("Are you sure you want to use network mounted file system for FS root? " +
"Note that this directory needs not be visible to the master."); "Note that this directory does not need to be visible to the master.");
return FormValidation.ok(); return FormValidation.ok();
} }
...@@ -375,7 +375,7 @@ public abstract class Slave extends Node implements Serializable { ...@@ -375,7 +375,7 @@ public abstract class Slave extends Node implements Serializable {
// //
// backwrad compatibility // backward compatibility
// //
/** /**
* In Hudson < 1.69 this was used to store the local file path * In Hudson < 1.69 this was used to store the local file path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册