public void run ( Action [ ] additionalActions ) { if ( job == null ) { return ; } DescriptorImpl d = getDescriptor ( ) ; LOGGER . fine ( "Scheduling a polling for " + job ) ; if ( d . synchronousPolling ) { LOGGER . fine ( "Running the trigger directly without threading, " + "as it's already taken care of by Trigger.Cron" ) ; new Runner ( additionalActions ) . run ( ) ; } else { // schedule the polling. // even if we end up submitting this too many times, that's OK. // the real exclusion control happens inside Runner. LOGGER . fine ( "scheduling the trigger to (asynchronously) run" ) ; d . queue . execute ( new Runner ( additionalActions ) ) ; d . clogCheck ( ) ; } }
Run the SCM trigger with additional build actions . Used by SubversionRepositoryStatus to trigger a build at a specific revision number .