update for 6.5.x

This commit is contained in:
Hyatt 2023-07-10 12:27:39 -05:00
parent 4cb264c247
commit 0353a9426d
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -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
echo "Version (${k8slensVersion}) is valid, we will build it with node 16." if (k8slensVersion ==~ '6\\.5\\.([0-9]+|[0-9]+-[0-9]+)$') {
doBuild = true echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
jsNodeID = 'node-16' doBuild = true
buildCommand = "npm install && npm run build && npm run build:app" jsNodeID = 'node-16'
} else { buildCommand = "npm install && npm run build && npm run build:app"
echo "Version (${k8slensVersion}) is not valid, we will not build it." // } else {
} // 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."
} }