From 61a14f460872c4b93f069e9b3dfc266df1dbb20b Mon Sep 17 00:00:00 2001 From: Yuxin Deng Date: Sun, 23 Nov 2025 20:55:08 -0500 Subject: [PATCH] save zap_report --- Jenkinsfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 92973943b..7cf9e1cd0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -175,6 +175,20 @@ pipeline { -t http://petclinic:8080 \ -r zap_report.html \ -I + + if [ -f zap_report.html ]; then + echo "ZAP report generated at $(pwd)/zap_report.html" + else + echo "ZAP report not found; creating placeholder for visibility" + cat > zap_report.html <<'EOF' + + +

OWASP ZAP report missing

+

The ZAP container did not produce zap_report.html. Check ZAP stage logs for details.

+ + + EOF + fi ''' } }