public class ServerCapabilitiesControl extends BackdoorControl<ServerCapabilitiesControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilterADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath| Constructor and Description |
|---|
ServerCapabilitiesControl(@NotNull BambooEnvironmentData environmentData) |
| Modifier and Type | Method and Description |
|---|---|
void |
createCapability(@NotNull String key,
@Nullable String value)
Create shared server capability
|
void |
createCommandExecutable(@NotNull String name,
@Nullable String path)
Convenience method for creating Command capability
|
void |
createGrailsExecutable(@NotNull String name,
@Nullable String path)
Convenience method for creating Grails capability
|
void |
createJdkCapability(@NotNull String name,
@Nullable String path)
Create JDK capability.
|
void |
deleteCapability(@NotNull String capabilityKey)
Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)
|
void |
deleteCapabilityQuietly(@NotNull String capabilityKey)
Delete capability, will throw exception if REST endpoint returns an error (most probably capability doesn't exist)
|
void |
detectServerCapabilities()
Call standard "Detect server capabilities" action.
|
List<RestCapability> |
getAllCapabilities()
Return full list of shared server capabilities
|
String |
getServerExecutable(@NotNull String namePattern)
Get value of server executable capability
|
String |
gitPath() |
boolean |
jdkExists(@NotNull String jdkLabel)
Check if given JDK capability exists
|
void |
redetectServerCapabilities()
Call REST endpoint defined in bamboo-test-utils-plugin.
|
boolean |
serverExecutableExists(@NotNull String namePattern)
Check if given server executable capability exist
|
void |
tearDown()
Cleanup resources
|
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRootpublic ServerCapabilitiesControl(@NotNull
@NotNull BambooEnvironmentData environmentData)
public void detectServerCapabilities()
public void redetectServerCapabilities()
public void createCapability(@NotNull
@NotNull String key,
@Nullable
@Nullable String value)
key - capability keyvalue - capability valuepublic void createGrailsExecutable(@NotNull
@NotNull String name,
@Nullable
@Nullable String path)
name - name of Grails executablepath - path to Grails binarypublic void createJdkCapability(@NotNull
@NotNull String name,
@Nullable
@Nullable String path)
public void createCommandExecutable(@NotNull
@NotNull String name,
@Nullable
@Nullable String path)
name - name of Command executablepath - path to Command binarypublic void deleteCapability(@NotNull
@NotNull String capabilityKey)
capabilityKey - key of capability to be deletedpublic void deleteCapabilityQuietly(@NotNull
@NotNull String capabilityKey)
capabilityKey - key of capability to be deletedpublic String gitPath()
public String getServerExecutable(@NotNull @NotNull String namePattern)
namePattern - pattern that should match server executable namepublic boolean serverExecutableExists(@NotNull
@NotNull String namePattern)
namePattern - pattern that should match server executable namepublic boolean jdkExists(@NotNull
@NotNull String jdkLabel)
public List<RestCapability> getAllCapabilities()
public void tearDown()
BackdoorControltearDown in class BackdoorControl<ServerCapabilitiesControl>Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.