Skip to content

Commit

Permalink
Revert "jenkins: add workaround for groovy script & Java 11+ (nodejs#…
Browse files Browse the repository at this point in the history
…3019)"

This reverts commit dce00d0.
  • Loading branch information
sxa committed Sep 1, 2022
1 parent 08602b3 commit 6e81fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/scripts/VersionSelectorScript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def canBuild = { nodeVersion, builderLabel, buildType ->

int nodeMajorVersion = -1
if (parameters['NODEJS_MAJOR_VERSION'])
nodeMajorVersion = new String(parameters['NODEJS_MAJOR_VERSION']).toInteger()
nodeMajorVersion = parameters['NODEJS_MAJOR_VERSION'].toString().toInteger()
println "Node.js major version: $nodeMajorVersion"
if (parameters['NODEJS_VERSION'])
println "Node.js version: ${new String(parameters['NODEJS_VERSION'])}"
println "Node.js version: ${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
Expand Down

0 comments on commit 6e81fbd

Please sign in to comment.