热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

本文整理了Java中hudson.model.Run.getArtifactsDir方法的一些代码示例,展示了Run.getArtifactsDir

本文整理了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());

推荐阅读
author-avatar
跳海FBA_802
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有