Class RssRuntimeContext
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.context.RssRuntimeContext
-
public final class RssRuntimeContext extends java.lang.Object
Runtime context for specs execution. Can be altered by setting Java properties when running specs. The properties are set automatically when executing specs in RSS mode.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.util.Optional<java.lang.String>
getCurrentRssBranch()
Current branch.static @NotNull java.util.Optional<java.lang.String>
getServerName()
Bamboo server name.static @NotNull java.util.Optional<java.lang.Boolean>
isDefaultRssBranch()
Check if branch is default repository branch.
-
-
-
Method Detail
-
getCurrentRssBranch
@NotNull public static @NotNull java.util.Optional<java.lang.String> getCurrentRssBranch()
Current branch.- Returns:
- branch of the repository from which currently executed specs are checked out.
-
isDefaultRssBranch
@NotNull public static @NotNull java.util.Optional<java.lang.Boolean> isDefaultRssBranch()
Check if branch is default repository branch.- Returns:
- true if the current branch is the default branch of the repository according to its configuration in Bamboo.
-
getServerName
@NotNull public static @NotNull java.util.Optional<java.lang.String> getServerName()
Bamboo server name.- Returns:
- Bamboo instance name as configured at General settings. Can be used to restrict publishing of Specs objects to specific Bamboo instances.
-
-