Removes builds for older versions
This commit is contained in:
parent
7dbcbb0a30
commit
e162b21164
@ -19,11 +19,6 @@ pipeline {
|
||||
templateName: templateName,
|
||||
alpine: true,
|
||||
[
|
||||
[
|
||||
name: "node-14",
|
||||
path: "${repository}/dockerhub/library/node:14",
|
||||
command: "/bin/sh"
|
||||
],
|
||||
[
|
||||
name: "node-16",
|
||||
path: "${repository}/dockerhub/library/node:16",
|
||||
@ -71,27 +66,7 @@ pipeline {
|
||||
}
|
||||
script {
|
||||
if (k8slensVersion ==~ '([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
|
||||
if (k8slensVersion ==~ '5\\.5\\.[0-9]+$') {
|
||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 14."
|
||||
doBuild = true
|
||||
jsNodeID = 'node-14'
|
||||
buildCommand = "make"
|
||||
} else if (k8slensVersion ==~ '5\\.6\\.[0-9]+$') {
|
||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
|
||||
doBuild = true
|
||||
jsNodeID = 'node-16'
|
||||
buildCommand = "make"
|
||||
} else if (k8slensVersion ==~ '6\\.[0-3]+\\.[0-9]+$') {
|
||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
|
||||
doBuild = true
|
||||
jsNodeID = 'node-16'
|
||||
buildCommand = "make"
|
||||
} else if (k8slensVersion ==~ '6\\.4\\.[0-9]+$') {
|
||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
|
||||
doBuild = true
|
||||
jsNodeID = 'node-16'
|
||||
buildCommand = "yarn && yarn run build && yarn run build:app"
|
||||
} else if (k8slensVersion ==~ '6\\.[5-9]+\\.[0-9]+$') {
|
||||
if (k8slensVersion ==~ '6\\.[5-9]+\\.[0-9]+$') {
|
||||
echo "Version (${k8slensVersion}) is valid, we will build it with node 16."
|
||||
doBuild = true
|
||||
jsNodeID = 'node-16'
|
||||
|
Reference in New Issue
Block a user