Package com.atlassian.bamboo.specs.util
Class BambooServer
java.lang.Object
com.atlassian.bamboo.specs.util.BambooServer
Represents an instance of Bamboo server for publishing
entities
.-
Constructor Summary
ConstructorDescriptionBambooServer
(@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
Modifier and TypeMethodDescriptionGet base URL for the Bamboo server.publish
(@NotNull RootEntityPropertiesBuilder entityProperties) Publishes the given entity to Bamboo server.
-
Constructor Details
-
BambooServer
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 Details
-
getBaseUrl
Get base URL for the Bamboo server. -
publish
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
-