src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmTestResult.java
public TestResult findCorrespondingResult(String id) {
        if (id == null || getId().equalsIgnoreCase(id)) {
            return this;
        }
        ArrayList<AWSDeviceFarmTestResultAction> prevActions = AWSDeviceFarmUtils.previousAWSDeviceFarmBuilds(build.getProject());
        if (prevActions == null || prevActions.isEmpty()) {
            return null;
        }
        for (AWSDeviceFarmTestResultAction action : prevActions) {
            AWSDeviceFarmTestResult prevResult = action.getResult();
            if (prevResult == null) {
                continue;
            }
            if (prevResult.getId().equalsIgnoreCase(id)) {
                return prevResult;
            }
        }
        return null;
    }
/**
     * Returns the AWS Device Farm test result for the given id. The id will likely be the default
     * value generated by Jenkins, which is usually just the human readable name. Return this
     * test result the ID's match, otherwise scan our previous runs looking for a matching result.
     * If no match is found, return null.
     *
     * @param id test result ID
     * @return the AWS Device Farm test result for the given id
     */
Returns the AWS Device Farm test result for the given id. The id will likely be the default
value generated by Jenkins, which is usually just the human readable name. Return this
test result the ID's match, otherwise scan our previous runs looking for a matching result.
If no match is found, return null.

@param id test result ID
@return the AWS Device Farm test result for the given id
Returns the AWS Device Farm test result for the given id . The id will likely be the default value generated by Jenkins which is usually just the human readable name . Return this test result the ID ' s match otherwise scan our previous runs looking for a matching result . If no match is found return null . @param id test result ID @return the AWS Device Farm test result for the given id
public TestResult findCorrespondingResult(String id) {
        if (id == null || getId().equalsIgnoreCase(id)) {
            return this;
        }
        ArrayList<AWSDeviceFarmTestResultAction> prevActions = AWSDeviceFarmUtils.previousAWSDeviceFarmBuilds(build.getProject());
        if (prevActions == null || prevActions.isEmpty()) {
            return null;
        }
        for (AWSDeviceFarmTestResultAction action : prevActions) {
            AWSDeviceFarmTestResult prevResult = action.getResult();
            if (prevResult == null) {
                continue;
            }
            if (prevResult.getId().equalsIgnoreCase(id)) {
                return prevResult;
            }
        }
        return null;
    }
public TestResult findCorrespondingResult ( String id ) { if ( id == null || getId ( ) . equalsIgnoreCase ( id ) ) { return this ; } ArrayList < AWSDeviceFarmTestResultAction > prevActions = AWSDeviceFarmUtils . previousAWSDeviceFarmBuilds ( build . getProject ( ) ) ; if ( prevActions == null || prevActions . isEmpty ( ) ) { return null ; } for ( AWSDeviceFarmTestResultAction action : prevActions ) { AWSDeviceFarmTestResult prevResult = action . getResult ( ) ; if ( prevResult == null ) { continue ; } if ( prevResult . getId ( ) . equalsIgnoreCase ( id ) ) { return prevResult ; } } return null ; }
Returns the AWS Device Farm test result for the given id.
Returns the AWS Device Farm test result for the given id .