hudson.model.AbstractBuild.calcChangeSet()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(66)

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

AbstractBuild.calcChangeSet介绍

暂无

代码示例

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

/**
 * Gets the changes incorporated into this build.
 *
 * @return never null.
 */
@Exported
@Nonnull public ChangeLogSet<? extends Entry> getChangeSet() {
  synchronized (changeSetLock) {
    if (scm==null) {
      scm = NullChangeLogParser.INSTANCE;                
    }
  }
  ChangeLogSet<? extends Entry> cs = null;
  if (changeSet!=null)
    cs = changeSet.get();
  if (cs==null)
    cs = calcChangeSet();
  // defensive check. if the calculation fails (such as through an exception),
  // set a dummy value so that it'll work the next time. the exception will
  // be still reported, giving the plugin developer an opportunity to fix it.
  if (cs==null)
    cs = ChangeLogSet.createEmpty(this);
  changeSet = new WeakReference<ChangeLogSet<? extends Entry>>(cs);
  return cs;
}

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

/**
 * Gets the changes incorporated into this build.
 *
 * @return never null.
 */
@Exported
@Nonnull public ChangeLogSet<? extends Entry> getChangeSet() {
  synchronized (changeSetLock) {
    if (scm==null) {
      scm = NullChangeLogParser.INSTANCE;                
    }
  }
  ChangeLogSet<? extends Entry> cs = null;
  if (changeSet!=null)
    cs = changeSet.get();
  if (cs==null)
    cs = calcChangeSet();
  // defensive check. if the calculation fails (such as through an exception),
  // set a dummy value so that it'll work the next time. the exception will
  // be still reported, giving the plugin developer an opportunity to fix it.
  if (cs==null)
    cs = ChangeLogSet.createEmpty(this);
  changeSet = new WeakReference<ChangeLogSet<? extends Entry>>(cs);
  return cs;
}

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

changeSet = calcChangeSet();
} finally {

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

changeSet = calcChangeSet();
} finally {

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

changeSet = calcChangeSet();
} finally {

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

changeSet = calcChangeSet();
} finally {

相关文章

微信公众号

最新文章

更多

AbstractBuild类方法