diff --git a/jenkins/scripts/VersionSelectorScript.groovy b/jenkins/scripts/VersionSelectorScript.groovy index 6cf51a284..a3eb96c4e 100644 --- a/jenkins/scripts/VersionSelectorScript.groovy +++ b/jenkins/scripts/VersionSelectorScript.groovy @@ -158,9 +158,9 @@ def canBuild = { nodeVersion, builderLabel, buildType -> int nodeMajorVersion = -1 if (parameters['NODEJS_MAJOR_VERSION']) - nodeMajorVersion = parameters['NODEJS_MAJOR_VERSION'].toString().toInteger() + nodeMajorVersion = new String(parameters['NODEJS_MAJOR_VERSION']).toInteger() println "Node.js major version: $nodeMajorVersion" -println "Node.js version: ${parameters['NODEJS_VERSION']}" +println "Node.js version: ${new String(parameters['NODEJS_VERSION'])}" // NOTE: this assumes that the default "Slaves"->"Name" in the Configuration // Matrix is left as "nodes", if it's changed then `it.nodes` below won't work