Trigger Reason Module

Available:

Bamboo 2.0 and later

On this page:

Description

A plugin module which defines a trigger reason in bamboo. For example, DependencyTriggerReason, InitialbuildTriggerReason, ScheduledTriggerReason. You want to implement a trigger reason if you are kicking off a build for some reason other than those which are currently defined in Bamboo.

Interface

Trigger Reason modules must implement the com.atlassian.bamboo.v2.build.trigger.TriggerReason interface.

Sample Module Descriptor Element

<triggerReason key="DependencyTriggerReason" name="DependencyTriggerReason"
         class="com.atlassian.bamboo.v2.build.trigger.DependencyTriggerReason">
  <renderer>com.atlassian.bamboo.v2.build.trigger.DefaultTriggerReasonRenderer</renderer>
  <description>Dependency trigger reason</description>
  <resource type="freemarker" name="longDescriptionTemplate" location="com/atlassian/bamboo/build/triggerReasons/dependencyTriggerReason-long.ftl"/>
  <resource type="freemarker" name="longDescriptionTextTemplate" location="com/atlassian/bamboo/build/triggerReasons/dependencyTriggerReasonText-long.ftl"/>
  <resource type="freemarker" name="shortDescriptionTemplate" location="com/atlassian/bamboo/build/triggerReasons/dependencyTriggerReason-short.ftl"/>
  <resource type="freemarker" name="shortDescriptionTextTemplate" location="com/atlassian/bamboo/build/triggerReasons/dependencyTriggerReasonText-short.ftl"/>
</triggerReason>
Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport