提交 bfca4e59 编写于 作者: H huybrechts

Issue 2249: export available artifacts in xml api

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13562 71c3de6d-444a-0410-be80-ed276b4c234a
上级 340bdc45
......@@ -544,6 +544,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* Gets the first {@value #CUTOFF} artifacts (relative to {@link #getArtifactsDir()}.
*/
@Exported
public List<Artifact> getArtifacts() {
ArtifactList r = new ArtifactList();
addArtifacts(getArtifactsDir(),"",r);
......@@ -652,10 +653,12 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* A build artifact.
*/
@ExportedBean
public class Artifact {
/**
* Relative path name from {@link Run#getArtifactsDir()}
*/
@Exported(visibility=3)
public final String relativePath;
/**
......@@ -678,10 +681,12 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
/**
* Returns just the file name portion, without the path.
*/
@Exported(visibility=3)
public String getFileName() {
return getFile().getName();
}
@Exported(visibility=3)
public String getDisplayPath() {
return displayPath;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册