Pre Build Action Module

All Versions
Click for all versions
Bamboo 2.1 Documentation

Index

Description

The PreBuildAction module allows you to define a custom process that runs before your build begins.

This will occur immediately before the builder begins execution. The PreBuildAction will have access to the BuildResults object which contains the information for the build.

Interface

Pre Build Action modules must implement the com.atlassian.bamboo.build.CustomPreBuildAction interface.

Sample Module Descriptor Element

<preBuildAction key="vcsVersion" name="VCS Version Collector"
                  class="com.atlassian.bamboo.vcsversion.VCSVersionReader">
    <description>A custom action that reads the identifier of a source repository version and stores it into the
    custom data map of a build.</description>
    <resource type="freemarker" name="edit" location="templates/plugins/preBuildAction/vcsVersionReaderEdit.ftl"/>
    <resource type="freemarker" name="view" location="templates/plugins/preBuildAction/vcsVersionReaderView.ftl"/>
  </preBuildAction>


RELATED TOPICS


Bamboo Documentation Home

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.