moves build script to next expression block

This commit is contained in:
Hyatt 2022-06-15 12:42:01 -05:00
parent d42bcb0ac5
commit e9de8d3aaf
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -69,7 +69,12 @@ pipeline {
).trim()
}
}
script {
}
}
stage('Pull K8S Lens Source Code') {
when {
expression {
if (k8slensVersion ==~ 'refs\\/tags\\/([5-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
if (k8slensVersion ==~ 'refs\\/tags\\/5\\.5\\.[0-9]+$') {
echo "Version (${k8slensVersion}) is valid, we will build it with node 14."
@ -81,13 +86,6 @@ pipeline {
echo "Version (${k8slensVersion}) is not valid, we will not build it."
skipBuild = false
}
}
}
}
stage('Pull K8S Lens Source Code') {
when {
expression {
return skipBuild
}
}