Class AttachmentPruner

java.lang.Object
net.masterthought.jenkins.storage.AttachmentPruner

public class AttachmentPruner extends Object
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 Details

    • DUMMY_PNG_BASE64

      public static final String 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

      public static void pruneJsonFiles(List<String> jsonFilePaths, int attachmentThresholdKB)