Package hudson.model

Interface SCMedItem

All Superinterfaces:
AccessControlled, BuildableItem, Item, ModelObject, OnMaster, PersistenceRoot, Queue.Task, ResourceActivity, Saveable, SearchableModelObject, SearchItem, SubTask

@Deprecated public interface SCMedItem extends BuildableItem
Deprecated.
Implement SCMTriggerItem instead.
  • Method Details

    • getScm

      SCM getScm()
      Deprecated.
      Gets the SCM for this item.
      Returns:
      may return null for indicating "no SCM".
    • asProject

      AbstractProject<?,?> asProject()
      Deprecated.
      SCMedItem needs to be an instance of AbstractProject.

      This method must be always implemented as (AbstractProject)this, but defining this method emphasizes the fact that this cast must be doable.

    • pollSCMChanges

      @Deprecated boolean pollSCMChanges(TaskListener listener)
      Deprecated.
      as of 1.346 Use poll(TaskListener) instead.
      Checks if there's any update in SCM, and returns true if any is found.
    • poll

      PollingResult poll(TaskListener listener)
      Deprecated.
      Checks if there's any update in SCM, and returns true if any is found.

      The implementation is responsible for ensuring mutual exclusion between polling and builds if necessary.

      Returns:
      never null.
      Since:
      1.345