From f2f9632e83ee60d026fd97c42108a31db3c985ce Mon Sep 17 00:00:00 2001 From: nhyatt Date: Thu, 9 Mar 2023 17:15:25 -0600 Subject: [PATCH] build command has changed --- build-k8s-lenz.jenkins | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index 86fae25..04f9609 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -7,6 +7,7 @@ def workspace def k8slensVersion def jsNodeID def doBuild = false +def buildCommand def label = "kubernetes-${UUID.randomUUID().toString()}" def templateName = "pipeline-worker" @@ -74,14 +75,23 @@ pipeline { echo "Version (${k8slensVersion}) is valid, we will build it with node 14." doBuild = true jsNodeID = 'node-14' + buildCommand = "make" } else if (k8slensVersion ==~ '5\\.6\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 16." doBuild = true jsNodeID = 'node-16' - } else if (k8slensVersion ==~ '6\\.[0-9]+\\.[0-9]+$') { + buildCommand = "make" + } else if (k8slensVersion ==~ '6\\.[0-3]+\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 16." doBuild = true jsNodeID = 'node-16' + buildCommand = "make" + } else if (k8slensVersion ==~ '6\\.[4-9]+\\.[0-9]+$') { + echo "Version (${k8slensVersion}) is valid, we will build it with node 18." + doBuild = true + jsNodeID = 'node-16' + buildCommand = "yarn && yarn run build && yarn run build:app" + } } else { echo "Version (${k8slensVersion}) is not valid, we will not build it." } @@ -158,7 +168,7 @@ pipeline { printf '%s\\n' "Changing directory" cd "${workspace}/lens" printf '%s\\n' "Building..." - make build + ${buildCommand} """ } }