src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarm.java
public ScheduleRunResult scheduleRun(String projectArn,
                                         String name,
                                         String appArn,
                                         String devicePoolArn,
                                         ScheduleRunTest test,
                                         Integer jobTimeoutMinutes,
                                         ScheduleRunConfiguration configuration,
                                         Boolean videoCapture,
                                         Boolean skipAppResign) {
        ScheduleRunRequest request = new ScheduleRunRequest()
                .withProjectArn(projectArn)
                .withName(name)
                .withDevicePoolArn(devicePoolArn)
                .withTest(test);

        ExecutionConfiguration exeConfiguration = new ExecutionConfiguration();
        if (!jobTimeoutMinutes.equals(DEFAULT_JOB_TIMEOUT_MINUTE)) {
            exeConfiguration.setJobTimeoutMinutes(jobTimeoutMinutes);
        }
        exeConfiguration.setVideoCapture(videoCapture);
        exeConfiguration.setSkipAppResign(skipAppResign);
        request.withExecutionConfiguration(exeConfiguration);

        if (configuration != null) {
            request.withConfiguration(configuration);
        }

        if (appArn != null) {
            request.withAppArn(appArn);
        }

        return api.scheduleRun(request);
    }
/**
     * Schedule a test run on Device Farm.
     *
     * @param projectArn    The ARN of the Device Farm project to run the test on.
     * @param name          The name of the test run.
     * @param appArn        The ARN of the app to test.
     * @param devicePoolArn The ARN of the device pool to test against.
     * @param test          The run test.
     * @param configuration The run configuration.
     * @return The result of the schedle run.
     */
Schedule a test run on Device Farm.
@param projectArn    The ARN of the Device Farm project to run the test on.
@param name          The name of the test run.
@param appArn        The ARN of the app to test.
@param devicePoolArn The ARN of the device pool to test against.
@param test          The run test.
@param configuration The run configuration.
@return The result of the schedle run.
Schedule a test run on Device Farm . @param projectArn The ARN of the Device Farm project to run the test on . @param name The name of the test run . @param appArn The ARN of the app to test . @param devicePoolArn The ARN of the device pool to test against . @param test The run test . @param configuration The run configuration . @return The result of the schedle run .
public ScheduleRunResult scheduleRun(String projectArn,
                                         String name,
                                         String appArn,
                                         String devicePoolArn,
                                         ScheduleRunTest test,
                                         Integer jobTimeoutMinutes,
                                         ScheduleRunConfiguration configuration,
                                         Boolean videoCapture,
                                         Boolean skipAppResign) {
        ScheduleRunRequest request = new ScheduleRunRequest()
                .withProjectArn(projectArn)
                .withName(name)
                .withDevicePoolArn(devicePoolArn)
                .withTest(test);
        ExecutionConfiguration exeConfiguration = new ExecutionConfiguration();
        if (!jobTimeoutMinutes.equals(DEFAULT_JOB_TIMEOUT_MINUTE)) {
            exeConfiguration.setJobTimeoutMinutes(jobTimeoutMinutes);
        }
        exeConfiguration.setVideoCapture(videoCapture);
        exeConfiguration.setSkipAppResign(skipAppResign);
        request.withExecutionConfiguration(exeConfiguration);
        if (configuration != null) {
            request.withConfiguration(configuration);
        }
        if (appArn != null) {
            request.withAppArn(appArn);
        }
        return api.scheduleRun(request);
    }
public ScheduleRunResult scheduleRun ( String projectArn , String name , String appArn , String devicePoolArn , ScheduleRunTest test , Integer jobTimeoutMinutes , ScheduleRunConfiguration configuration , Boolean videoCapture , Boolean skipAppResign ) { ScheduleRunRequest request = new ScheduleRunRequest ( ) . withProjectArn ( projectArn ) . withName ( name ) . withDevicePoolArn ( devicePoolArn ) . withTest ( test ) ; ExecutionConfiguration exeConfiguration = new ExecutionConfiguration ( ) ; if ( ! jobTimeoutMinutes . equals ( DEFAULT_JOB_TIMEOUT_MINUTE ) ) { exeConfiguration . setJobTimeoutMinutes ( jobTimeoutMinutes ) ; } exeConfiguration . setVideoCapture ( videoCapture ) ; exeConfiguration . setSkipAppResign ( skipAppResign ) ; request . withExecutionConfiguration ( exeConfiguration ) ; if ( configuration != null ) { request . withConfiguration ( configuration ) ; } if ( appArn != null ) { request . withAppArn ( appArn ) ; } return api . scheduleRun ( request ) ; }
Schedule a test run on Device Farm.
Schedule a test run on Device Farm .