mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 05:25:25 +00:00
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
This commit is contained in:
1 parent
340bdc45f8
commit
bfca4e59a1
1 file changed
+5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user