本文整理了Java中hudson.model.Run.getArtifactsUpTo
方法的一些代码示例,展示了Run.getArtifactsUpTo
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.getArtifactsUpTo
方法的具体详情如下:
包路径:hudson.model.Run
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!