Package com.atlassian.bamboo.specs.util
Class BambooServer
- java.lang.Object
-
- com.atlassian.bamboo.specs.util.BambooServer
-
public class BambooServer extends java.lang.Object
Represents an instance of Bamboo server for publishingentities
.
-
-
Constructor Summary
Constructors Constructor Description BambooServer(@NotNull java.lang.String baseUrl)
Create an instance of Bamboo server.BambooServer(@NotNull java.lang.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 java.net.URI
getBaseUrl()
Get base URL for the Bamboo server.java.lang.Object
publish(@NotNull RootEntityPropertiesBuilder entityProperties)
Publishes the given entity to Bamboo server.
-
-
-
Constructor Detail
-
BambooServer
public BambooServer(@NotNull @NotNull java.lang.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 java.lang.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 java.net.URI getBaseUrl()
Get base URL for the Bamboo server.
-
publish
public java.lang.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
-
-