adds updates to support v 6

This commit is contained in:
Hyatt 2022-08-14 08:25:03 -05:00
parent df13ad3006
commit 4c140852da
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

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