From ac12ff01a09fb613558b9790b73b52ccf1335f60 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Thu, 1 Jun 2023 08:31:25 -0500 Subject: [PATCH] openlens switched to npm --- build-k8s-lenz.jenkins | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index 30af259..57b5c19 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -86,11 +86,16 @@ pipeline { doBuild = true jsNodeID = 'node-16' buildCommand = "make" - } else if (k8slensVersion ==~ '6\\.[4-9]+\\.[0-9]+$') { + } else if (k8slensVersion ==~ '6\\.4\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 16." doBuild = true jsNodeID = 'node-16' buildCommand = "yarn && yarn run build && yarn run build:app" + } else 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 -g npm@^9.6.7 && npm install && npm run build && npm run build:app -- --scope=open-lens -- --dir" } else { echo "Version (${k8slensVersion}) is not valid, we will not build it." }