adds updates to support v 6
This commit is contained in:
parent
df13ad3006
commit
4c140852da
@ -70,15 +70,20 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
if (k8slensVersion ==~ 'refs\\/tags\\/([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
|
if (k8slensVersion ==~ 'refs\\/tags\\/v([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
|
||||||
if (k8slensVersion ==~ 'refs\\/tags\\/5\\.5\\.[0-9]+$') {
|
if (k8slensVersion ==~ 'refs\\/tags\\/v5\\.5\\.[0-9]+$') {
|
||||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 14."
|
echo "Version (${k8slensVersion}) is valid, we will build it with node 14."
|
||||||
doBuild = true
|
doBuild = true
|
||||||
jsNodeID = 'node-14'
|
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."
|
echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
|
||||||
doBuild = true
|
doBuild = true
|
||||||
jsNodeID = 'node-16'
|
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 {
|
} else {
|
||||||
echo "Version (${k8slensVersion}) is not valid, we will not build it."
|
echo "Version (${k8slensVersion}) is not valid, we will not build it."
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user