mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
save zap_report
This commit is contained in:
parent
da2ab968cf
commit
61a14f4608
1 changed files with 14 additions and 0 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
|
@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue