Prevent security test from failing build

This commit is contained in:
2025-10-10 17:08:48 +01:00
parent 5a09d74670
commit bd735cb1e5

20
Jenkinsfile vendored
View File

@@ -38,13 +38,13 @@ pipeline {
}
}
stage('Security scan') {
when {
expression {
return params.Build == true
try{
stage('Security scan') {
when {
expression {
return params.Build == true
}
}
}
try{
steps {
sh "docker kill sectest || true"
sh "docker rm sectest || true"
@@ -55,10 +55,10 @@ pipeline {
sh "docker rm sectest"
}
}
catch(e) {
build_ok = false
echo e.toString()
}
}
catch(e) {
build_ok = false
echo e.toString()
}
stage('Push to local registry') {