hudson.model.Run.getArtifactsUpTo()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(79)

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

Run.getArtifactsUpTo介绍

[英]Gets the first N artifacts.
[中]获取前N个工件。

代码示例

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

/**
 * Check if the {@link Run} contains artifacts.
 * The strange method name is so that we can access it from EL.
 * @return true if this run has any artifacts
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 * @return The list can be empty but never null
 */    
@Exported  
public @Nonnull List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

public List<Artifact> superGetArtifactsUpTo(int n) {
  return super.getArtifactsUpTo(n);
}

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

/**
 * Returns true if this run has any artifacts.
 *
 * <p>
 * The strange method name is so that we can access it from EL.
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Returns true if this run has any artifacts.
 *
 * <p>
 * The strange method name is so that we can access it from EL.
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Returns true if this run has any artifacts.
 *
 * <p> The strange method name is so that we can access it from EL.
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Check if the {@link Run} contains artifacts.
 * The strange method name is so that we can access it from EL.
 * @return true if this run has any artifacts
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Returns true if this run has any artifacts.
 *
 * <p>
 * The strange method name is so that we can access it from EL.
 */
public boolean getHasArtifacts() {
  return !getArtifactsUpTo(1).isEmpty();
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 */
@Exported
public List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 */
@Exported
public List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 * @return The list can be empty but never null
 */    
@Exported  
public @Nonnull List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 */
@Exported
public List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

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

/**
 * Gets the artifacts (relative to {@link #getArtifactsDir()}.
 */
@Exported
public List<Artifact> getArtifacts() {
  return getArtifactsUpTo(Integer.MAX_VALUE);
}

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

@Override
public List<Artifact> getArtifactsUpTo(int n) {
  initPython();
  if (pexec.isImplemented(45)) {
    return (List) pexec.execPython("get_artifacts_up_to", DataConvertor.fromInt(n));
  } else {
    return super.getArtifactsUpTo(n);
  }
}

相关文章

微信公众号

最新文章

更多

Run类方法