Constructor and Description |
---|
BambooServer(String baseUrl)
Create an instance of Bamboo server.
|
BambooServer(String baseUrl,
AuthenticationProvider authenticationProvider)
Create an instance of Bamboo server with specified
AuthenticationProvider . |
Modifier and Type | Method and Description |
---|---|
URI |
getBaseUrl()
Get base URL for the Bamboo server.
|
Object |
publish(RootEntityPropertiesBuilder entityProperties)
Publishes the given entity to Bamboo server.
|
public BambooServer(@NotNull String baseUrl)
baseUrl
- base URL of the Bamboo server, e.g. http://bamboo.example.com/ (ignored when in RSS mode)public BambooServer(@NotNull String baseUrl, @NotNull AuthenticationProvider authenticationProvider)
AuthenticationProvider
.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)public URI getBaseUrl()
public Object publish(@NotNull RootEntityPropertiesBuilder entityProperties)
RunnerSettings
.
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 at baseUrl
.
See also: RssRuntimeContext
entityProperties
- entity to publishBambooSpecsPublishingException
- if publishing failsCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.