Class RssRuntimeContext
java.lang.Object
com.atlassian.bamboo.specs.api.context.RssRuntimeContext
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
Modifier and TypeMethodDescriptionCurrent branch.Bamboo server name.Check if branch is default repository branch.
-
Method Details
-
getCurrentRssBranch
Current branch.- Returns:
- branch of the repository from which currently executed specs are checked out.
-
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
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.
-