Skip to content

Commit

Permalink
tixup! test version as int
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Mar 28, 2019
1 parent 90e6708 commit 562f2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jenkins/pipelines/node-linter.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ pipeline {
script {
def node_version = sh(script: "python tools/getnodeversion.py", returnStdout: true).trim()
echo node_version
def node_version_parts = node_version.tokenize('.')
def node_major = version_parts[0] as int
def lint_py3_ret = 0
if (node_version > "11." && node_version.take(1) != '8') {
if (node_major > 11) {
// this job does not build node, so we use the system's node
lint_py3_ret = sh(script: "NODE=node PYTHON=python3 ${env.MAKE} lint-py", returnStatus: true)
}
Expand Down

0 comments on commit 562f2b3

Please sign in to comment.