src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmTestResult.java
@SuppressWarnings("unused")
    public void doDurationGraph(StaplerRequest request, StaplerResponse response) throws IOException {
        // Abort if having Java AWT issues.
        if (ChartUtil.awtProblemCause != null) {
            response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
            return;
        }

        // Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
        if (isCompleted()) {
            Calendar timestamp = getOwner().getTimestamp();
            if (request.checkIfModified(timestamp, response)) {
                return;
            }
        }

        // Create new duration graph for this AWS Device Farm result.
        Graph graph = AWSDeviceFarmGraph.createDurationTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
        graph.doPng(request, response);
    }
/**
     * Create the graph image for the number of device minutes used in a test run, for the previous three Jenkins runs.
     *
     * @param request
     * @param response
     * @throws IOException
     */
Create the graph image for the number of device minutes used in a test run, for the previous three Jenkins runs.
@param request
@param response
@throws IOException
Create the graph image for the number of device minutes used in a test run for the previous three Jenkins runs . @param request @param response @throws IOException
@SuppressWarnings("unused")
    public void doDurationGraph(StaplerRequest request, StaplerResponse response) throws IOException {
        if (ChartUtil.awtProblemCause != null) {
            response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
            return;
        }
        if (isCompleted()) {
            Calendar timestamp = getOwner().getTimestamp();
            if (request.checkIfModified(timestamp, response)) {
                return;
            }
        }
        Graph graph = AWSDeviceFarmGraph.createDurationTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
        graph.doPng(request, response);
    }
@ SuppressWarnings ( "unused" ) public void doDurationGraph ( StaplerRequest request , StaplerResponse response ) throws IOException { if ( ChartUtil . awtProblemCause != null ) { response . sendRedirect2 ( String . format ( "%s/images/headless.png" , request . getContextPath ( ) ) ) ; return ; } if ( isCompleted ( ) ) { Calendar timestamp = getOwner ( ) . getTimestamp ( ) ; if ( request . checkIfModified ( timestamp , response ) ) { return ; } } Graph graph = AWSDeviceFarmGraph . createDurationTrendGraph ( build , isCompleted ( ) , getPreviousResults ( DefaultTrendGraphSize ) ) ; graph . doPng ( request , response ) ; }
Create the graph image for the number of device minutes used in a test run, for the previous three Jenkins runs.
Create the graph image for the number of device minutes used in a test run for the previous three Jenkins runs .
// Abort if having Java AWT issues. // Check the "If-Modified-Since" header and abort if we don't need re-create the graph. // Create new duration graph for this AWS Device Farm result.