Skip to content
Browse files

Trim trailing whitespace in resourcenames

If not trimmed, the trailing whitespaces will find their way
to the jobs config.xml, causing confusion.

Trailing whitespaces in resourcenames are caused also by the
autocompletion script, that suggests resourcenames.

JIRA Issue:
  • Loading branch information
Aga303 committed Oct 10, 2017
1 parent 3a9e649 commit 300d4b1d6aae030daba46e174b507a5a00e38630
@@ -43,7 +43,11 @@ public RequiredResourcesProperty(String resourceNames,
String resourceNamesVar, String resourceNumber,
String labelName, @CheckForNull SecureGroovyScript resourceMatchScript) {
this.resourceNames = resourceNames;
if (resourceNames != null) {
this.resourceNames = resourceNames.trim();
} else {
this.resourceNames = null;
this.resourceNamesVar = resourceNamesVar;
this.resourceNumber = resourceNumber;
if (resourceMatchScript != null) {

0 comments on commit 300d4b1

Please sign in to comment.
You can’t perform that action at this time.