update for 6.5.x
This commit is contained in:
parent
4cb264c247
commit
0353a9426d
@ -65,15 +65,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
|
//if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
|
||||||
if (k8slensVersion ==~ '6\\.[5-9]+\\.[0-9]+$') {
|
// v6.5.x or 6.5.x-xxx
|
||||||
|
if (k8slensVersion ==~ '6\\.5\\.([0-9]+|[0-9]+-[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'
|
||||||
buildCommand = "npm install && npm run build && npm run build:app"
|
buildCommand = "npm install && npm run build && npm run build:app"
|
||||||
} else {
|
// } else {
|
||||||
echo "Version (${k8slensVersion}) is not valid, we will not build it."
|
// echo "Version (${k8slensVersion}) is not valid, we will not build it."
|
||||||
}
|
// }
|
||||||
} 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