Class RssRuntimeContext
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.context.RssRuntimeContext
-
public final class RssRuntimeContext extends 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 Optional<String>getCurrentRssBranch()Current branch.static @NotNull Optional<String>getServerName()Bamboo server name.static @NotNull Optional<Boolean>isDefaultRssBranch()Check if branch is default repository branch.
-
-
-
Method Detail
-
getCurrentRssBranch
@NotNull public static @NotNull Optional<String> getCurrentRssBranch()
Current branch.- Returns:
- branch of the repository from which currently executed specs are checked out.
-
isDefaultRssBranch
@NotNull public static @NotNull Optional<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.
-
-