Search in sources :

Example 1 with NullSCM

use of hudson.scm.NullSCM in project hudson-2.x by hudson.

the class AbstractProject method onLoad.

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
    super.onLoad(parent, name);
    this.builds = new RunMap<R>();
    this.builds.load(this, new Constructor<R>() {

        public R create(File dir) throws IOException {
            return loadBuild(dir);
        }
    });
    // boolean! Can't tell if xml file contained false..
    if (enableRemoteTrigger)
        OldDataMonitor.report(this, "1.77");
    for (Trigger t : getTriggerDescribableList()) {
        t.start(this, false);
    }
    if (scm == null)
        // perhaps it was pointing to a plugin that no longer exists.
        scm = new NullSCM();
    if (transientActions == null)
        // happens when loaded from disk
        transientActions = new Vector<Action>();
    updateTransientActions();
    getTriggerDescribableList().setOwner(this);
}
Also used : SC_INTERNAL_SERVER_ERROR(javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR) BuildTrigger(hudson.tasks.BuildTrigger) Trigger(hudson.triggers.Trigger) SCMTrigger(hudson.triggers.SCMTrigger) NullSCM(hudson.scm.NullSCM) IOException(java.io.IOException) File(java.io.File) Vector(java.util.Vector)

Aggregations

NullSCM (hudson.scm.NullSCM)1 BuildTrigger (hudson.tasks.BuildTrigger)1 SCMTrigger (hudson.triggers.SCMTrigger)1 Trigger (hudson.triggers.Trigger)1 File (java.io.File)1 IOException (java.io.IOException)1 Vector (java.util.Vector)1 SC_INTERNAL_SERVER_ERROR (javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR)1