Class BuildNumberResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.build.BuildNumberResource
@Path("buildNumber")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
@Singleton
public class BuildNumberResource
extends Object
-
Constructor Summary
ConstructorDescriptionBuildNumberResource
(BambooPermissionManager bambooPermissionManager, BuildNumberService buildNumberService, PlanRestService planRestService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
bumpBuildNumber
(String projectKey, String buildKey, @NotNull NextBuildNumber nextBuildNumber) getNextBuildNumber
(String projectKey, String buildKey)
-
Constructor Details
-
BuildNumberResource
@Inject public BuildNumberResource(BambooPermissionManager bambooPermissionManager, BuildNumberService buildNumberService, PlanRestService planRestService)
-
-
Method Details
-
bumpBuildNumber
@PUT @Path("{projectKey}-{buildKey}/bump") public javax.ws.rs.core.Response bumpBuildNumber(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey, @NotNull @NotNull NextBuildNumber nextBuildNumber) throws WebValidationException - Throws:
WebValidationException
-
getNextBuildNumber
@GET @Path("{projectKey}-{buildKey}") public NextBuildNumber getNextBuildNumber(@PathParam("projectKey") String projectKey, @PathParam("buildKey") String buildKey)
-