From 4c140852da6a95d11fc7699ff17f673b21df5a28 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Sun, 14 Aug 2022 08:25:03 -0500 Subject: [PATCH] adds updates to support v 6 --- build-k8s-lenz.jenkins | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index 04ca56a..14f70bf 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -70,15 +70,20 @@ pipeline { } } script { - if (k8slensVersion ==~ 'refs\\/tags\\/([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') { - if (k8slensVersion ==~ 'refs\\/tags\\/5\\.5\\.[0-9]+$') { + if (k8slensVersion ==~ 'refs\\/tags\\/v([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') { + if (k8slensVersion ==~ 'refs\\/tags\\/v5\\.5\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 14." doBuild = true jsNodeID = 'node-14' - } else if (k8slensVersion ==~ 'refs\\/tags\\/5\\.6\\.[0-9]+$') { + } else if (k8slensVersion ==~ 'refs\\/tags\\/v5\\.6\\.[0-9]+$') { echo "Version (${k8slensVersion}) is valid, we will build it with node 16." doBuild = true jsNodeID = 'node-16' + } else if (k8slensVersion ==~ 'refs\\/tags\\/v6\\.[0-9]+\\.[0-9]+$') { + echo "Version (${k8slensVersion}) is valid, we will build it with node 16." + doBuild = true + jsNodeID = 'node-16' + } else { } else { echo "Version (${k8slensVersion}) is not valid, we will not build it." }