From 0353a9426d88c0d8b11caafea728697df62f4d87 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Mon, 10 Jul 2023 12:27:39 -0500 Subject: [PATCH] update for 6.5.x --- build-k8s-lenz.jenkins | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index f4f0c97..a5b7357 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -65,15 +65,16 @@ pipeline { } } script { - if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') { - if (k8slensVersion ==~ '6\\.[5-9]+\\.[0-9]+$') { - echo "Version (${k8slensVersion}) is valid, we will build it with node 16." - doBuild = true - jsNodeID = 'node-16' - buildCommand = "npm install && npm run build && npm run build:app" - } else { - echo "Version (${k8slensVersion}) is not valid, we will not build it." - } + //if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') { + // v6.5.x or 6.5.x-xxx + if (k8slensVersion ==~ '6\\.5\\.([0-9]+|[0-9]+-[0-9]+)$') { + echo "Version (${k8slensVersion}) is valid, we will build it with node 16." + doBuild = true + jsNodeID = 'node-16' + buildCommand = "npm install && npm run build && npm run build:app" + // } else { + // echo "Version (${k8slensVersion}) is not valid, we will not build it." + // } } else { echo "Version (${k8slensVersion}) is not valid, we will not build it." }