本文整理了Java中hudson.model.Run.getArtifactsDir
方法的一些代码示例,展示了Run.getArtifactsDir
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.getArtifactsDir
方法的具体详情如下:
包路径:hudson.model.Run
类名称:Run
方法名:getArtifactsDir
Run.getArtifactsDir介绍
[英]Gets the directory where the artifacts are archived.
[中]
代码示例
代码示例来源:origin: jenkinsci/jenkins
@SuppressWarnings("deprecation")
private File getArtifactsDir() {
return build.getArtifactsDir();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@SuppressWarnings("deprecation")
private File getArtifactsDir() {
return build.getArtifactsDir();
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
public File superGetArtifactsDir() {
return super.getArtifactsDir();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Deletes this build's artifacts.
*
* @throws IOException
* if we fail to delete.
*
* @since 1.350
*/
public synchronized void deleteArtifacts() throws IOException {
File artifactsDir = getArtifactsDir();
Util.deleteContentsRecursive(artifactsDir);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Deletes this build's artifacts.
*
* @throws IOException
* if we fail to delete.
*
* @since 1.350
*/
public synchronized void deleteArtifacts() throws IOException {
File artifactsDir = getArtifactsDir();
Util.deleteContentsRecursive(artifactsDir);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Deletes this build's artifacts.
*
* @throws IOException
* if we fail to delete.
*
* @since 1.350
*/
public synchronized void deleteArtifacts() throws IOException {
File artifactsDir = getArtifactsDir();
Util.deleteContentsRecursive(artifactsDir);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Deletes this build's artifacts.
*
* @throws IOException if we fail to delete.
*
* @since 1.350
*/
public synchronized void deleteArtifacts() throws IOException {
File artifactsDir = getArtifactsDir();
Util.deleteContentsRecursive(artifactsDir);
}
代码示例来源:origin: jenkinsci/copyartifact-plugin
/**
* @deprecated rather override {@link #getArtifacts}
*/
@Deprecated
protected FilePath getSourceDirectory(Run,?> src, PrintStream console) throws IOException, InterruptedException {
FilePath srcDir = new FilePath(src.getArtifactsDir());
if (srcDir.exists()) {
return srcDir;
} else {
console.println(Messages.CopyArtifact_MissingSrcArtifacts(srcDir));
return null;
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Gets the first N artifacts.
*/
public List getArtifactsUpTo(int n) {
ArtifactList r = new ArtifactList();
addArtifacts(getArtifactsDir(),"","",r,null,n);
r.computeDisplayName();
return r;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Gets the first N artifacts.
*/
public List getArtifactsUpTo(int n) {
ArtifactList r = new ArtifactList();
addArtifacts(getArtifactsDir(),"","",r,null,n);
r.computeDisplayName();
return r;
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public File getArtifactsDir() {
initPython();
if (pexec.isImplemented(43)) {
return (File) pexec.execPython("get_artifacts_dir");
} else {
return super.getArtifactsDir();
}
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Gets the first N artifacts.
*/
public List getArtifactsUpTo(int n) {
ArtifactList r = new ArtifactList();
addArtifacts(getArtifactsDir(),"","",r,null,n);
r.computeDisplayName();
return r;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Gets the first N artifacts.
*/
public List getArtifactsUpTo(int n) {
ArtifactList r = new ArtifactList();
addArtifacts(getArtifactsDir(), "", "", r, null, n);
r.computeDisplayName();
return r;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Serves the artifacts.
*/
public DirectoryBrowserSupport doArtifact() {
if (Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this, new FilePath(getArtifactsDir()), project.getDisplayName() + ' ' + getDisplayName(), "package.png", true);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Serves the artifacts.
*/
public DirectoryBrowserSupport doArtifact() {
if(Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this,new FilePath(getArtifactsDir()), project.getDisplayName()+' '+getDisplayName(), "package.gif", true);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Serves the artifacts.
*/
public DirectoryBrowserSupport doArtifact() {
if(Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this,new FilePath(getArtifactsDir()), project.getDisplayName()+' '+getDisplayName(), "package.gif", true);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Serves the artifacts.
*/
public DirectoryBrowserSupport doArtifact() {
if(Functions.isArtifactsPermissionEnabled()) {
checkPermission(ARTIFACTS);
}
return new DirectoryBrowserSupport(this,new FilePath(getArtifactsDir()), project.getDisplayName()+' '+getDisplayName(), "package.png", true);
}
代码示例来源:origin: awslabs/aws-device-farm-jenkins-plugin
FilePath artifactsDir = new FilePath(build.getArtifactsDir());