hudson.model.AbstractItem.performDelete()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中hudson.model.AbstractItem.performDelete()方法的一些代码示例,展示了AbstractItem.performDelete()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractItem.performDelete()方法的具体详情如下:
包路径:hudson.model.AbstractItem
类名称:AbstractItem
方法名:performDelete

AbstractItem.performDelete介绍

[英]Does the real job of deleting the item.
[中]真正的工作是删除项目。

代码示例

代码示例来源:origin: jenkinsci/jenkins

performDelete();

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Deletes this item.
 */
public synchronized void delete() throws IOException, InterruptedException {
  checkPermission(DELETE);
  performDelete();
  try {
    invokeOnDeleted();
  } catch (AbstractMethodError e) {
    // ignore
  }
  Hudson.getInstance().rebuildDependencyGraph();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Deletes this item.
 */
public synchronized void delete() throws IOException, InterruptedException {
  checkPermission(DELETE);
  performDelete();
  try {
    invokeOnDeleted();
  } catch (AbstractMethodError e) {
    // ignore
  }
  Hudson.getInstance().rebuildDependencyGraph();
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Deletes this item.
 */
public synchronized void delete() throws IOException, InterruptedException {
  checkPermission(DELETE);
  performDelete();
  try {
    invokeOnDeleted();
  } catch (AbstractMethodError e) {
    // ignore
  }
  Hudson.getInstance().rebuildDependencyGraph();
}

代码示例来源:origin: hudson/hudson-2.x

@Override
protected void performDelete() throws IOException, InterruptedException {
  // if a build is in progress. Cancel it.
  RunT lb = getLastBuild();
  if (lb != null) {
    Executor e = lb.getExecutor();
    if (e != null) {
      e.interrupt();
      // should we block until the build is cancelled?
    }
  }
  CascadingUtil.unlinkProjectFromCascadingParents(getCascadingProject(), name);
  super.performDelete();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

@Override
protected void performDelete() throws IOException, InterruptedException {
  // if a build is in progress. Cancel it.
  RunT lb = getLastBuild();
  if (lb != null) {
    Executor e = lb.getExecutor();
    if (e != null) {
      e.interrupt();
      // should we block until the build is cancelled?
    }
  }
  CascadingUtil.unlinkProjectFromCascadingParents(getCascadingProject(), name);
  super.performDelete();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

@Override
protected void performDelete() throws IOException, InterruptedException {
  // if a build is in progress. Cancel it.
  RunT lb = getLastBuild();
  if (lb != null) {
    Executor e = lb.getExecutor();
    if (e != null) {
      e.interrupt();
      // should we block until the build is cancelled?
    }
  }
  CascadingUtil.unlinkProjectFromCascadingParents(getCascadingProject(), name);
  super.performDelete();
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

@Override
protected void performDelete() throws IOException, InterruptedException {
  // if a build is in progress. Cancel it.
  RunT lb = getLastBuild();
  if (lb != null) {
    Executor e = lb.getExecutor();
    if (e != null) {
      e.interrupt();
      // should we block until the build is cancelled?
    }
  }
  Set<String> cascadingChildren = new HashSet(getCascadingChildrenNames());
  for (String cascadingChild : cascadingChildren) {
    Item item = Hudson.getInstance().getItem(cascadingChild);
    if (item != null && item instanceof Job) {
      Job childJob = (Job) item;
      if (this.equals(childJob.getCascadingProject())) {
        childJob.clearCascadingProject();
      }
    }
  }
  clearCascadingProject();
  cascadingChildrenNames.clear();
  super.performDelete();
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * 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();
      }
    }
  }
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

performDelete();

相关文章