com.atlassian.bamboo.v2.build
Interface BuilderV2

All Superinterfaces:
BambooPluginModule, java.io.Serializable
All Known Subinterfaces:
Builder, EnvironmentVariablesAwareBuilder, MutableEnvironmentVariablesAwareBuilder
All Known Implementing Classes:
AbstractBuilder, AbstractMavenBuilder, AntBuilder, CustomCommandBuilder, Maven2Builder, MavenBuilder, PhpUnitBuilder, ScriptBuilder

public interface BuilderV2
extends java.io.Serializable, BambooPluginModule


Method Summary
 void executeBuild(BuildContext buildContext, ReadOnlyCapabilitySet capabilitySet)
          Runs the build, and updates the build results in the build context.
 boolean hasPassed(int returnCode, int buildNumber, java.lang.String planKey)
          Determines based on the return code and/or logs whether the build has passed.
 void populateBuildErrors(CurrentBuildResult buildResult, java.util.List<java.lang.String> errorOutput, java.lang.String planKey, int buildNumber)
          Finds any build errors based on builder output to put in build results
 

Method Detail

executeBuild

void executeBuild(@NotNull
                  BuildContext buildContext,
                  ReadOnlyCapabilitySet capabilitySet)
                  throws java.lang.InterruptedException,
                         RepositoryException
Runs the build, and updates the build results in the build context. This method is also responsible for collating the test results in a build

Parameters:
buildContext -
capabilitySet -
Throws:
java.lang.InterruptedException
RepositoryException

hasPassed

boolean hasPassed(int returnCode,
                  int buildNumber,
                  java.lang.String planKey)
Determines based on the return code and/or logs whether the build has passed. Implementors should log how they came up with their conclusions -

Parameters:
returnCode - return code from build execution command
buildNumber -
planKey - @return true if build has passed

populateBuildErrors

void populateBuildErrors(CurrentBuildResult buildResult,
                         java.util.List<java.lang.String> errorOutput,
                         java.lang.String planKey,
                         int buildNumber)
Finds any build errors based on builder output to put in build results

Parameters:
buildResult -
errorOutput -


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.