/** * Removes {@link JobProperty} * * @since 1.279 */ public void removeProperty(JobProperty<? super JobT> jobProp) throws IOException { properties.remove(jobProp); save(); }
@Override public synchronized void save() throws IOException { super.save(); updateTransientActions(); }
/** * Adds {@link JobProperty}. * * @since 1.188 */ public void addProperty(JobProperty<? super JobT> jobProp) throws IOException { ((JobProperty)jobProp).setOwner(this); properties.add(jobProp); save(); }
@Override public void onLocationChanged(Item item, final String oldFullName, final String newFullName) { try (ACLContext acl = ACL.as(ACL.SYSTEM)) { for (Job<?, ?> p : Jenkins.getInstance().allItems(Job.class)) { ReverseBuildTrigger t = ParameterizedJobMixIn.getTrigger(p, ReverseBuildTrigger.class); if (t != null) { String revised = Items.computeRelativeNamesAfterRenaming(oldFullName, newFullName, t.getUpstreamProjects(), p.getParent()); if (!revised.equals(t.upstreamProjects)) { t.upstreamProjects = revised; try { p.save(); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to persist project setting during rename from " + oldFullName + " to " + newFullName, e); } } } } } } }
/** * {@inheritDoc} */ public void addCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.add(cascadingChildName); save(); }
/** * {@inheritDoc} */ public void removeCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.remove(cascadingChildName); save(); }
/** * {@inheritDoc} */ public void addCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.add(cascadingChildName); save(); }
/** * {@inheritDoc} */ public void removeCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.remove(cascadingChildName); save(); }
/** * {@inheritDoc} */ public void removeCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.remove(cascadingChildName); save(); }
/** * {@inheritDoc} */ public void addCascadingChild(String cascadingChildName) throws IOException { cascadingChildrenNames.add(cascadingChildName); save(); }
public void addWhitelist(String author) { whitelist = whitelist + " " + author; try { this.job.save(); } catch (IOException ex) { LOGGER.log(Level.SEVERE, "Failed to save new whitelist", ex); } }
public void trySave() { try { job.save(); } catch (IOException e) { LOG.error("Error while saving job to file", e); } }
/** * {@inheritDoc} */ public synchronized void renameCascadingChildName(String oldChildName, String newChildName) throws IOException { cascadingChildrenNames.remove(oldChildName); cascadingChildrenNames.add(newChildName); save(); }
/** * {@inheritDoc} */ public synchronized void renameCascadingChildName(String oldChildName, String newChildName) throws IOException { cascadingChildrenNames.remove(oldChildName); cascadingChildrenNames.add(newChildName); save(); }
/** * {@inheritDoc} */ public synchronized void renameCascadingChildName(String oldChildName, String newChildName) throws IOException { cascadingChildrenNames.remove(oldChildName); cascadingChildrenNames.add(newChildName); save(); }
/** * Removes {@link JobProperty} * * @since 1.279 */ public void removeProperty(JobProperty<? super JobT> jobProp) throws IOException { properties.remove(jobProp); save(); }
public synchronized void doUpdateCascadingProject(@QueryParameter(fixEmpty = true) String projectName) throws IOException { setCascadingProjectName(projectName); save(); }
public synchronized void doUpdateCascadingProject(@QueryParameter(fixEmpty = true) String projectName) throws IOException { setCascadingProjectName(projectName); save(); }
@Override public synchronized void save() throws IOException { super.save(); updateTransientActions(); }
/** * Adds {@link JobProperty}. * * @since 1.188 */ public void addProperty(JobProperty<? super JobT> jobProp) throws IOException { ((JobProperty)jobProp).setOwner(this); properties.add(jobProp); save(); }