private void calcPollingBaseline ( AbstractBuild build , Launcher launcher , TaskListener listener ) throws IOException , InterruptedException { SCMRevisionState baseline = build . getAction ( SCMRevisionState . class ) ; if ( baseline == null ) { try { baseline = getScm ( ) . calcRevisionsFromBuild ( build , launcher , listener ) ; } catch ( AbstractMethodError e ) { baseline = SCMRevisionState . NONE ; // pre-1.345 SCM implementations, which doesn't use the baseline in polling } if ( baseline != null ) build . addAction ( baseline ) ; } pollingBaseline = baseline ; }
Pushes the baseline up to the newly checked out revision .