moves build script to next expression block
This commit is contained in:
parent
d42bcb0ac5
commit
e9de8d3aaf
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user