3030import static com .browserstack .automate .ci .common .logger .PluginLogger .logError ;
3131
3232public class BrowserStackReportForBuild extends AbstractBrowserStackReportForBuild {
33- private static final int RESULT_META_MAX_SIZE = 5 ;
3433 private final String buildName ;
35- private final List <Session > browserStackSessions ;
36- private final List <JSONObject > result ;
37- private final List <JSONObject > resultMeta ;
34+ private final transient List <Session > browserStackSessions ;
35+ private final transient List <JSONObject > result ;
3836 private final Map <String , String > resultAggregation ;
3937 private final ProjectType projectType ;
4038 private final transient PrintStream logger ;
@@ -43,7 +41,7 @@ public class BrowserStackReportForBuild extends AbstractBrowserStackReportForBui
4341 // to make them available in jelly
4442 private final String errorConst = Constants .SessionStatus .ERROR ;
4543 private final String failedConst = Constants .SessionStatus .FAILED ;
46- private Build browserStackBuild ;
44+ private transient Build browserStackBuild ;
4745 private String browserStackBuildBrowserUrl ;
4846
4947 public BrowserStackReportForBuild (final Run <?, ?> build ,
@@ -57,7 +55,6 @@ public BrowserStackReportForBuild(final Run<?, ?> build,
5755 this .buildName = buildName ;
5856 this .browserStackSessions = new ArrayList <>();
5957 this .result = new ArrayList <>();
60- this .resultMeta = new ArrayList <>();
6158 this .resultAggregation = new HashMap <>();
6259 this .projectType = projectType ;
6360 this .logger = logger ;
@@ -116,7 +113,6 @@ public boolean generateBrowserStackReport() {
116113
117114 if (result .size () > 0 ) {
118115 result .sort (new SessionsSortingComparator ());
119- resultMeta .addAll (result .subList (0 , Math .min (result .size (), RESULT_META_MAX_SIZE )));
120116 generateAggregationInfo ();
121117 return true ;
122118 }
@@ -222,10 +218,6 @@ public List<JSONObject> getResult() {
222218 return result ;
223219 }
224220
225- public List <JSONObject > getResultMeta () {
226- return resultMeta ;
227- }
228-
229221 public Map <String , String > getResultAggregation () {
230222 return resultAggregation ;
231223 }
0 commit comments