save zap_report

This commit is contained in:
Yuxin Deng 2025-11-23 20:55:08 -05:00
parent da2ab968cf
commit 61a14f4608

14
Jenkinsfile vendored
View file

@ -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'
<html>
<body>
<h1>OWASP ZAP report missing</h1>
<p>The ZAP container did not produce zap_report.html. Check ZAP stage logs for details.</p>
</body>
</html>
EOF
fi
'''
}
}