/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** @deprecated Use {@link Extension} instead. */ @Deprecated public final void register() { Jenkins.getInstance().getSCMListeners().add(this); }
@WithBridgeMethods(void.class) public boolean add(T item) { data.add(item); _onModified(); return true; }
/** * Adds {@link JobProperty}. * * @since 1.188 */ public void addProperty(JobProperty<? super JobT> jobProp) throws IOException { ((JobProperty)jobProp).setOwner(this); properties.add(jobProp); save(); }
for (JobProperty p : t) { p.setOwner(this); properties.add(p);
/** * Adds a JIRA site. * * @param site the JIRA site */ @DataBoundSetter public void setSites(JiraSite site) { sites.add(site); }
/** * Called when the build is qualified. */ public synchronized boolean add(Status status) throws IOException { for (Status s : statuses) if(s.name.equals(status.name)) return false; // already qualified. noop. this.statuses.add(status); status.parent = this; owner.save(); return true; }
/** * Adds a Hubot site. * * @param site the JIRA site */ @DataBoundSetter public void setSites(HubotSite site) { sites.add(site); }
/** @deprecated Use {@link Extension} instead. */ @Deprecated public final void register() { Jenkins.getInstance().getSCMListeners().add(this); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class) item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */ public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Adds {@link JobProperty}. * * @since 1.188 */ public void addProperty(JobProperty<? super JobT> jobProp) throws IOException { ((JobProperty)jobProp).setOwner(this); properties.add(jobProp); save(); }
/** * Registers this {@link SCMListener} so that it will start receiving * events. */ public final void register() { Hudson.getInstance().getSCMListeners().add(this); }
@WithBridgeMethods(void.class) public boolean add(T item) { data.add(item); _onModified(); return true; }
/** * Registers this {@link SCMListener} so that it will start receiving events. */ public final void register() { Hudson.getInstance().getSCMListeners().add(this); }
private static void fixProperties(AbstractProject implementationProject, TemplateImplementationProperty property, boolean implementationIsTemplate) throws IOException { CopyOnWriteList<JobProperty<?>> properties = ReflectionUtils.getFieldValue(Job.class, implementationProject, "properties"); properties.add(property); if (!implementationIsTemplate) { for (JobProperty<?> jobProperty : properties) { if (jobProperty instanceof TemplateProperty) { properties.remove(jobProperty); } } } }
/** * Registers this {@link SCMListener} so that it will start receiving events. */ public final void register() { Hudson.getInstance().getSCMListeners().add(this); }