public void rebuild() { log.debug("Rebuilding dependency graph"); getHudson().rebuildDependencyGraph(); }
public void rebuild() { log.debug("Rebuilding dependency graph"); getHudson().rebuildDependencyGraph(); }
/** * Set the Ivy ModuleDescriptor for this instance. If the descriptor * has changed, then invalidate the descriptor project map and * rebuild the dependency graph. * * @param d The ModuleDescriptor to set. */ private void setModuleDescriptor(ModuleDescriptor d) { ModuleDescriptor old = moduleDescriptor; moduleDescriptor = d; if (old == moduleDescriptor) return; if ((old==null) || !old.equals(moduleDescriptor)) { DESCRIPTOR.invalidateProjectMap(); Hudson.getInstance().rebuildDependencyGraph(); } }
/** * Set the Ivy ModuleDescriptor for this instance. If the descriptor * has changed, then invalidate the descriptor project map and * rebuild the dependency graph. * * @param d The ModuleDescriptor to set. */ private void setModuleDescriptor(ModuleDescriptor d) { ModuleDescriptor old = moduleDescriptor; moduleDescriptor = d; if (old == moduleDescriptor) return; if ((old==null) || !old.equals(moduleDescriptor)) { DESCRIPTOR.invalidateProjectMap(); Hudson.getInstance().rebuildDependencyGraph(); } }
/** * Set the Ivy ModuleDescriptor for this instance. If the descriptor * has changed, then invalidate the descriptor project map and * rebuild the dependency graph. * * @param d The ModuleDescriptor to set. */ private void setModuleDescriptor(ModuleDescriptor d) { ModuleDescriptor old = moduleDescriptor; moduleDescriptor = d; if (old == moduleDescriptor) return; if ((old==null) || !old.equals(moduleDescriptor)) { DESCRIPTOR.invalidateProjectMap(); Hudson.getInstance().rebuildDependencyGraph(); } }
/** * Reload a project to update its definition. * * @since 2.x.x */ public TopLevelItem reloadProjectFromDisk(File jobDir) throws IOException { TopLevelItem item = (TopLevelItem) Items.load(this, jobDir, false); items.put(item.getName(), item); rebuildDependencyGraph(); return item; }
/** * Reload a project to update its definition. * @since 2.x.x */ public TopLevelItem reloadProjectFromDisk(File jobDir) throws IOException { TopLevelItem item = (TopLevelItem) Items.load(this, jobDir); items.put(item.getName(), item); rebuildDependencyGraph(); return item; }
/** * Reload a project to update its definition. * @since 2.x.x */ public TopLevelItem reloadProjectFromDisk(File jobDir) throws IOException { TopLevelItem item = (TopLevelItem) Items.load(this, jobDir); items.put(item.getName(), item); rebuildDependencyGraph(); return item; }
/** * Reload a project to update its definition. * @since 2.x.x */ public TopLevelItem reloadProjectFromDisk(File jobDir) throws IOException { TopLevelItem item = (TopLevelItem) Items.load(this, jobDir); items.put(item.getName(), item); rebuildDependencyGraph(); return item; }
/** * Deletes this item. */ public synchronized void delete() throws IOException, InterruptedException { checkPermission(DELETE); performDelete(); try { invokeOnDeleted(); } catch (AbstractMethodError e) { // ignore } Hudson.getInstance().rebuildDependencyGraph(); }
/** * Deletes this item. */ public synchronized void delete() throws IOException, InterruptedException { checkPermission(DELETE); performDelete(); try { invokeOnDeleted(); } catch (AbstractMethodError e) { // ignore } Hudson.getInstance().rebuildDependencyGraph(); }
/** * Deletes this item. */ public synchronized void delete() throws IOException, InterruptedException { checkPermission(DELETE); performDelete(); try { invokeOnDeleted(); } catch (AbstractMethodError e) { // ignore } Hudson.getInstance().rebuildDependencyGraph(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); reporters.rebuild(req, req.getSubmittedForm(),MavenReporters.getConfigurableList()); goals = Util.fixEmpty(req.getParameter("goals").trim()); // dependency setting might have been changed by the user, so rebuild. Hudson.getInstance().rebuildDependencyGraph(); }
public synchronized TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException { acl.checkPermission(Job.CREATE); // place it as config.xml File configXml = Items.getConfigFile(getRootDirFor(name)).getFile(); configXml.getParentFile().mkdirs(); try { IOUtils.copy(xml,configXml); // load it TopLevelItem result = (TopLevelItem)Items.load(parent,configXml.getParentFile()); add(result); ItemListener.fireOnCreated(result); Hudson.getInstance().rebuildDependencyGraph(); return result; } catch (IOException e) { // if anything fails, delete the config file to avoid further confusion Util.deleteRecursive(configXml.getParentFile()); throw e; } }
public synchronized TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException { acl.checkPermission(Job.CREATE); // place it as config.xml File configXml = Items.getConfigFile(getRootDirFor(name)).getFile(); configXml.getParentFile().mkdirs(); try { IOUtils.copy(xml,configXml); // load it TopLevelItem result = (TopLevelItem)Items.load(parent,configXml.getParentFile()); add(result); ItemListener.fireOnCreated(result); Hudson.getInstance().rebuildDependencyGraph(); return result; } catch (IOException e) { // if anything fails, delete the config file to avoid further confusion Util.deleteRecursive(configXml.getParentFile()); throw e; } }
public synchronized TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException { acl.checkPermission(Job.CREATE); // place it as config.xml File configXml = Items.getConfigFile(getRootDirFor(name)).getFile(); configXml.getParentFile().mkdirs(); try { IOUtils.copy(xml,configXml); // load it TopLevelItem result = (TopLevelItem)Items.load(parent,configXml.getParentFile()); add(result); ItemListener.fireOnCreated(result); Hudson.getInstance().rebuildDependencyGraph(); return result; } catch (IOException e) { // if anything fails, delete the config file to avoid further confusion Util.deleteRecursive(configXml.getParentFile()); throw e; } }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // dependency setting might have been changed by the user, so rebuild. Hudson.getInstance().rebuildDependencyGraph(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // dependency setting might have been changed by the user, so rebuild. Hudson.getInstance().rebuildDependencyGraph(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // dependency setting might have been changed by the user, so rebuild. Hudson.getInstance().rebuildDependencyGraph(); }
/** * Deletes this item. */ public void delete() throws IOException, InterruptedException { final ItemGroup group = getParent(); // Obtain delete lock synchronized (getDeleteLock()) { // Lock parent, and then 'this' before deleting. synchronized (group) { synchronized (this) { checkPermission(DELETE); performDelete(); try { invokeOnDeleted(); } catch (AbstractMethodError e) { // ignore } Hudson.getInstance().rebuildDependencyGraph(); } } } }