Package com.atlassian.bamboo.specs.util
Class BambooServer
- java.lang.Object
-
- com.atlassian.bamboo.specs.util.BambooServer
-
-
Constructor Summary
Constructors Constructor Description BambooServer(@NotNull String baseUrl)Create an instance of Bamboo server.BambooServer(@NotNull String baseUrl, @NotNull AuthenticationProvider authenticationProvider)Create an instance of Bamboo server with specifiedAuthenticationProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetBaseUrl()Get base URL for the Bamboo server.Objectpublish(@NotNull RootEntityPropertiesBuilder entityProperties)Publishes the given entity to Bamboo server.
-
-
-
Constructor Detail
-
BambooServer
public BambooServer(@NotNull @NotNull String baseUrl)Create an instance of Bamboo server.- Parameters:
baseUrl- base URL of the Bamboo server, e.g. http://bamboo.example.com/ (ignored when in RSS mode)
-
BambooServer
public BambooServer(@NotNull @NotNull String baseUrl, @NotNull @NotNull AuthenticationProvider authenticationProvider)Create an instance of Bamboo server with specifiedAuthenticationProvider.- Parameters:
baseUrl- base URL of the Bamboo server, e.g. http://bamboo.example.com/ (ignored when in RSS mode)authenticationProvider- credentials to use for contacting Bamboo (ignored when in RSS mode)
-
-
Method Detail
-
getBaseUrl
public URI getBaseUrl()
Get base URL for the Bamboo server.
-
publish
public Object publish(@NotNull @NotNull RootEntityPropertiesBuilder entityProperties)
Publishes the given entity to Bamboo server. The exact behavior of this method depends on the state ofRunnerSettings. In RSS mode, url and authentication parameters are ignored and calling this method on any BambooServer object results in publishing the object to the current Bamboo instance. When publishing using Maven profile (mvn -Ppublish-specs) the Specs objects are sent to a Bamboo instance located atbaseUrl. See also:RssRuntimeContext- Parameters:
entityProperties- entity to publish- Returns:
- result of the publishing
- Throws:
BambooSpecsPublishingException- if publishing fails
-
-