From e162b21164e98668083e53382012f270daa4ba8e Mon Sep 17 00:00:00 2001 From: nhyatt Date: Thu, 1 Jun 2023 09:30:31 -0500 Subject: [PATCH] Removes builds for older versions --- build-k8s-lenz.jenkins | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index 2460f84..ffd8684 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -19,11 +19,6 @@ pipeline { templateName: templateName, alpine: true, [ - [ - name: "node-14", - path: "${repository}/dockerhub/library/node:14", - command: "/bin/sh" - ], [ name: "node-16", path: "${repository}/dockerhub/library/node:16", @@ -71,27 +66,7 @@ pipeline { } script { if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') { - if (k8slensVersion ==~ '5\\.5\\.[0-9]+$') { - 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' - 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\\.[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]+$') { + if (k8slensVersion ==~ '6\\.[5-9]+\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 16." doBuild = true jsNodeID = 'node-16'