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." }