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);
}
Aggregations