adds updates to support v 6
This commit is contained in:
parent
df13ad3006
commit
4c140852da
@ -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."
|
||||
}
|
||||
|
Reference in New Issue
Block a user