protected PollingResult compareRemoteRevisionWith()

in src/main/java/com/amazonaws/codepipeline/jenkinsplugin/AWSCodePipelineSCM.java [169:194]


    protected PollingResult compareRemoteRevisionWith(
            final AbstractProject<?, ?> project,
            final Launcher launcher,
            final FilePath filePath,
            final TaskListener listener,
            final SCMRevisionState revisionState)
            throws IOException, InterruptedException {

        final ActionTypeId actionTypeId = new ActionTypeId()
                .withCategory(actionTypeCategory)
                .withOwner(ActionOwner.Custom)
                .withProvider(actionTypeProvider)
                .withVersion(actionTypeVersion);

        final String projectName = Validation.sanitize(project.getName().trim());

        LoggingHelper.log(listener, "Polling for jobs for action type id: ["
                + "Owner: %s, Category: %s, Provider: %s, Version: %s, ProjectName: %s]",
                actionTypeId.getOwner(),
                actionTypeId.getCategory(),
                actionTypeId.getProvider(),
                actionTypeId.getVersion(),
                project.getName());

        return pollForJobs(projectName, actionTypeId, listener);
    }