org.hudsonci.rest.api.build
Class BuildResource
java.lang.Object
org.hudsonci.rest.api.internal.ResourceSupport
org.hudsonci.rest.api.build.BuildResource
@Named
public class BuildResource
- extends ResourceSupport
Provides access to a build.
- Since:
- 2.1.0
- Author:
- Jason Dillon
|
Method Summary |
void |
deleteBuild(String projectName,
int buildNumber)
|
BuildDTO |
getBuild(String projectName,
int buildNumber)
|
ChangesDTO |
getChanges(String projectName,
int buildNumber)
|
ConsoleDTO |
getConsole(String projectName,
int buildNumber)
|
InputStream |
getConsoleContent(String projectName,
int buildNumber,
long offset,
long length)
|
TestsDTO |
getTests(String projectName,
int buildNumber)
|
javax.ws.rs.core.Response |
keepBuild(String projectName,
int buildNumber,
boolean release)
|
void |
stopBuild(String projectName,
int buildNumber)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildResource
@Inject
public BuildResource(ProjectService projectService,
BuildService buildService,
ProjectBuildHelper support,
BuildConverter buildx,
ChangesConverter changesx,
TestsConverter testsx)
getBuild
public BuildDTO getBuild(String projectName,
int buildNumber)
deleteBuild
public void deleteBuild(String projectName,
int buildNumber)
keepBuild
public javax.ws.rs.core.Response keepBuild(String projectName,
int buildNumber,
boolean release)
stopBuild
public void stopBuild(String projectName,
int buildNumber)
getChanges
public ChangesDTO getChanges(String projectName,
int buildNumber)
getTests
public TestsDTO getTests(String projectName,
int buildNumber)
getConsole
public ConsoleDTO getConsole(String projectName,
int buildNumber)
throws IOException
- Throws:
IOException
getConsoleContent
public InputStream getConsoleContent(String projectName,
int buildNumber,
long offset,
long length)
throws IOException
- Throws:
IOException
Copyright © 2004-2011 Hudson. All Rights Reserved.