fixed Jenkinsfile post
Some checks failed
Tests / Declarative: Post Actions No test results found
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-05 15:52:48 +02:00
parent 7ecef99153
commit 942cc3f2cf

11
Jenkinsfile vendored
View File

@@ -83,17 +83,16 @@ pipeline {
}
post {
failure {
script {
currentBuild.description = "Sicherheits-Check fehlgeschlagen! Details im Trivy Security Report."
}
}
always {
// Sammelt die Testergebnisse ein (die wir im Test-Schritt erzeugen)
// Das **/ bedeutet: Suche in allen Unterordnern nach .xml Dateien
junit testResults: '**/TestResults/*.xml', allowEmptyResults: true
failure {
script {
currentBuild.description = "Sicherheits-Check fehlgeschlagen! Details im Trivy Security Report."
}
}
// Dieser Schritt macht den Report im Jenkins-Menü links sichtbar
publishHTML([
allowMissing: false,