mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Added trimming of label expressions.
This commit is contained in:
1 parent
86bde01eea
commit
013b4e794e
1 file changed
+2
-1
@@ -24,6 +24,7 @@
|
||||
package hudson.matrix;
|
||||
|
||||
import hudson.Extension;
|
||||
import hudson.Util;
|
||||
import hudson.model.Hudson;
|
||||
|
||||
import java.util.LinkedList;
|
||||
@@ -86,7 +87,7 @@ public class LabelExpAxis extends Axis {
|
||||
List<String> expressions = new LinkedList<String>();
|
||||
String[] exprs = valuesString.split("\n");
|
||||
for(String expr: exprs){
|
||||
expressions.add(expr);
|
||||
expressions.add(Util.fixEmptyAndTrim(expr));
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user