use of com.qasymphony.ci.plugin.store.ReadSubmitLogRequest in project jenkin-qtest-plugin by QASymphony.
the class PipelineStatisticsAction method getTreeResult.
/**
* use to get result in qTest Plugin page
*
* @param page page submitted result
* @return submitted result data
*/
@JavaScriptMethod
public JSONObject getTreeResult(int page) {
Map<Integer, SubmittedResult> results = null;
try {
Job job = this.getJob();
results = storeResultService.fetchAll(new ReadSubmitLogRequest().setJob(job).setStart(0).setSize(-1)).getResults();
} catch (Exception e) {
LOG.log(Level.WARNING, e.getMessage());
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("data", null == results ? "" : results.values());
return jsonObject;
}
use of com.qasymphony.ci.plugin.store.ReadSubmitLogRequest in project jenkin-qtest-plugin by QASymphony.
the class StatisticsAction method getTreeResult.
/**
* use to get result in qTest Plugin page
*
* @param page page submitted result
* @return submitted result data
*/
@JavaScriptMethod
public JSONObject getTreeResult(int page) {
Map<Integer, SubmittedResult> results = null;
try {
AbstractProject project = this.getProject();
results = storeResultService.fetchAll(new ReadSubmitLogRequest().setProject(project).setStart(0).setSize(-1)).getResults();
} catch (Exception e) {
LOG.log(Level.WARNING, e.getMessage());
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("data", null == results ? "" : results.values());
return jsonObject;
}
Aggregations