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 Details

    • 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.
    • getServerName

      @NotNull public static @NotNull Optional<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.