docs: public final PollingResult poll(AbstractProject<?,?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException {
          if (is1_346OrLater()) {
              // This is to work around HUDSON-5827 in a general way.
              // don't let the SCM.compareRemoteRevisionWith(...) see SCMRevisionState that it didn't produce.
              SCMRevisionState baseline2;
              if (baseline!=SCMRevisionState.NONE) {
                  baseline2 = baseline;
              } else {
                  baseline2 = calcRevisionsFromBuild(project.getLastBuild(), launcher, listener);
              }
  
              return compareRemoteRevisionWith(project, launcher, workspace, listener, baseline2);
          } else {
              return pollChanges(project,launcher,workspace,listener) ? PollingResult.SIGNIFICANT : PollingResult.NO_CHANGES;
          }
      }