Class AttachmentPruner
java.lang.Object
net.masterthought.jenkins.storage.AttachmentPruner
Prunes large attachments (such as large screenshots and voluminous console logs)
directly from cached JSON files before ReportBuilder generates static HTML reports.
This prevents static HTML files from duplicating multi-megabyte Base64 embeddings
across feature, tag, and failure overview pages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String1x1 transparent dummy PNG so ReportBuilder's Base64 image decoding succeeds and writes a minimal placeholder to disk without crashing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpruneJsonFiles(List<String> jsonFilePaths, int attachmentThresholdKB)
-
Field Details
-
DUMMY_PNG_BASE64
1x1 transparent dummy PNG so ReportBuilder's Base64 image decoding succeeds and writes a minimal placeholder to disk without crashing.- See Also:
-
-
Constructor Details
-
AttachmentPruner
public AttachmentPruner()
-
-
Method Details
-
pruneJsonFiles
-