another attempte to running the blasted if

This commit is contained in:
Hyatt 2022-06-15 12:45:19 -05:00
parent e9de8d3aaf
commit a1b6f3d9f7
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -67,14 +67,6 @@ pipeline {
""", """,
returnStdout: true returnStdout: true
).trim() ).trim()
}
}
}
}
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-9]|[0-9]{2,})\\.[0-9]+\\.[0-9]+$') {
if (k8slensVersion ==~ 'refs\\/tags\\/5\\.5\\.[0-9]+$') { if (k8slensVersion ==~ 'refs\\/tags\\/5\\.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."
@ -86,6 +78,14 @@ pipeline {
echo "Version (${k8slensVersion}) is not valid, we will not build it." echo "Version (${k8slensVersion}) is not valid, we will not build it."
skipBuild = false skipBuild = false
} }
}
}
}
}
stage('Pull K8S Lens Source Code') {
when {
expression {
return skipBuild return skipBuild
} }
} }