com.atlassian.bamboo.testutils.model
Class TestBuildDetails

java.lang.Object
  extended by com.atlassian.bamboo.testutils.model.TestBuildDetails

public class TestBuildDetails
extends Object


Nested Class Summary
static class TestBuildDetails.CloverBuild
           
 
Field Summary
static String SUBDIR_100_TESTS
           
static String SUBDIR_CVS_FAILED
           
static String SUBDIR_CVS_FAST
           
static String SUBDIR_CVS_LONG
           
static String SUBDIR_CVS_MIXED
           
static String SUBDIR_CVS_SCRIPT
           
static String SUBDIR_CVS_SUCCESS
           
static String SUBDIR_GIT_FAILED
           
static String SUBDIR_GIT_FAST
           
static String SUBDIR_GIT_ONE_FAILED
           
static String SUBDIR_GIT_SKIPPED
           
static String SUBDIR_GIT_SLOW
           
static String SUBDIR_GIT_SUCCESS
           
static String SUBDIR_PERFORCE_FAILED
           
static String SUBDIR_PERFORCE_SUCCESS
           
static String SUBDIR_SVN_FAIL_ON_PROPERTY
           
static String SUBDIR_SVN_FAILED
           
static String SUBDIR_SVN_FAST
           
static String SUBDIR_SVN_LONG
           
static String SUBDIR_SVN_MIXED
           
static String SUBDIR_SVN_SUCCESS
           
static String SUBDIR_SVN_TWO_FAILED_TESTS
           
 
Constructor Summary
TestBuildDetails(long timeId, String projectName, String projectKey, String buildKey, String buildName)
           
TestBuildDetails(ProjectDescriptor project, String buildKey, String buildName)
           
TestBuildDetails(ProjectDescriptor project, String key, String name, TestBuildDetails master)
           
TestBuildDetails(String projectName, String projectKey, String buildKey, String buildName)
           
 
Method Summary
 TestJobDetails addJob(String stageName, String jobKey, String jobName)
          Create a TestBuildDetails object representing job.
 void addStages(TestStageDetails... stages)
           
 String getBranchName()
           
 String getBuildDescription()
           
 TestBuildDetails.CloverBuild getCloverBuild()
           
 String getCreatorUser()
           
 TestJobDetails getDefaultJob()
           
 Repository getDefaultRepository()
           
 TestStageDetails getDefaultStage()
           
 Map<String,Object> getExtraData()
           
 String getFullName()
           
 String getGlobalRepositoryName()
           
 TestJobDetails getJob(PlanKey jobKey)
           
 TestJobDetails getJob(TestStageDetails stage, String partialJobKey)
           
 PlanKey getKey()
           
 RepositoryConfigurationService.LinkedRepositoryAccess getLinkedRepositoryAccess()
           
 TestBuildDetails getMaster()
           
 String getName()
           
 ProjectDescriptor getProject()
           
 String getRepositoryDisplayName()
           
 TestStageDetails getStage(String stageName)
           
 List<TestStageDetails> getStages()
           
 TriggerSettings getTriggerSettings()
           
 boolean isDisabled()
           
 boolean isExport()
           
 boolean isExternals()
           
 boolean isIsolateCommits()
           
 boolean isNoAdvanced()
           
 boolean isTriggerInitialManualBuild()
           
 void setBranchName(String branchName)
           
 void setBuildDescription(String buildDescription)
           
 void setCloverBuild(TestBuildDetails.CloverBuild cloverBuild)
           
 void setCreatorUser(String creatorUser)
           
 void setDisabled(boolean disabled)
           
 void setDisabledAndNoAdvancedOption(boolean disabledAndNoAdvancedOption)
           
 void setExport(boolean export)
           
 void setExternals(boolean externals)
           
 void setGlobalRepositoryName(String globalRepositoryName)
           
 void setIsolateCommits(boolean isolateCommits)
           
 void setKey(String partialKey)
           
 void setLinkedRepositoryAccess(RepositoryConfigurationService.LinkedRepositoryAccess linkedRepositoryAccess)
           
 TestBuildDetails setManualBuild(boolean manual)
           
 TestBuildDetails setName(String name)
           
 void setNoAdvanced(boolean noAdvanced)
           
 TestBuildDetails setProject(ProjectDescriptor project)
           
 TestBuildDetails setTriggerInitialManualBuild(boolean triggerInitialManualBuild)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUBDIR_CVS_SUCCESS

public static final String SUBDIR_CVS_SUCCESS
See Also:
Constant Field Values

SUBDIR_CVS_FAST

public static final String SUBDIR_CVS_FAST
See Also:
Constant Field Values

SUBDIR_CVS_FAILED

public static final String SUBDIR_CVS_FAILED
See Also:
Constant Field Values

SUBDIR_CVS_MIXED

public static final String SUBDIR_CVS_MIXED
See Also:
Constant Field Values

SUBDIR_CVS_SCRIPT

public static final String SUBDIR_CVS_SCRIPT
See Also:
Constant Field Values

SUBDIR_CVS_LONG

public static final String SUBDIR_CVS_LONG
See Also:
Constant Field Values

SUBDIR_PERFORCE_SUCCESS

public static final String SUBDIR_PERFORCE_SUCCESS
See Also:
Constant Field Values

SUBDIR_PERFORCE_FAILED

public static final String SUBDIR_PERFORCE_FAILED
See Also:
Constant Field Values

SUBDIR_SVN_SUCCESS

public static final String SUBDIR_SVN_SUCCESS
See Also:
Constant Field Values

SUBDIR_SVN_FAILED

public static final String SUBDIR_SVN_FAILED
See Also:
Constant Field Values

SUBDIR_100_TESTS

public static final String SUBDIR_100_TESTS
See Also:
Constant Field Values

SUBDIR_SVN_MIXED

public static final String SUBDIR_SVN_MIXED
See Also:
Constant Field Values

SUBDIR_SVN_LONG

public static final String SUBDIR_SVN_LONG
See Also:
Constant Field Values

SUBDIR_SVN_FAST

public static final String SUBDIR_SVN_FAST
See Also:
Constant Field Values

SUBDIR_SVN_TWO_FAILED_TESTS

public static final String SUBDIR_SVN_TWO_FAILED_TESTS
See Also:
Constant Field Values

SUBDIR_SVN_FAIL_ON_PROPERTY

public static final String SUBDIR_SVN_FAIL_ON_PROPERTY
See Also:
Constant Field Values

SUBDIR_GIT_SUCCESS

public static final String SUBDIR_GIT_SUCCESS
See Also:
Constant Field Values

SUBDIR_GIT_FAILED

public static final String SUBDIR_GIT_FAILED
See Also:
Constant Field Values

SUBDIR_GIT_ONE_FAILED

public static final String SUBDIR_GIT_ONE_FAILED
See Also:
Constant Field Values

SUBDIR_GIT_FAST

public static final String SUBDIR_GIT_FAST
See Also:
Constant Field Values

SUBDIR_GIT_SLOW

public static final String SUBDIR_GIT_SLOW
See Also:
Constant Field Values

SUBDIR_GIT_SKIPPED

public static final String SUBDIR_GIT_SKIPPED
See Also:
Constant Field Values
Constructor Detail

TestBuildDetails

public TestBuildDetails(String projectName,
                        String projectKey,
                        String buildKey,
                        String buildName)

TestBuildDetails

public TestBuildDetails(long timeId,
                        String projectName,
                        String projectKey,
                        String buildKey,
                        String buildName)

TestBuildDetails

public TestBuildDetails(ProjectDescriptor project,
                        String buildKey,
                        String buildName)

TestBuildDetails

public TestBuildDetails(ProjectDescriptor project,
                        String key,
                        String name,
                        @Nullable
                        TestBuildDetails master)
Method Detail

getFullName

public String getFullName()

setManualBuild

public TestBuildDetails setManualBuild(boolean manual)

getDefaultStage

public TestStageDetails getDefaultStage()

getKey

public PlanKey getKey()

setKey

public void setKey(String partialKey)
Parameters:
partialKey - - identifier of plan, without project key

getName

public String getName()

setName

public TestBuildDetails setName(String name)

getProject

public ProjectDescriptor getProject()

setProject

public TestBuildDetails setProject(ProjectDescriptor project)

getBuildDescription

public String getBuildDescription()

setBuildDescription

public void setBuildDescription(String buildDescription)

getDefaultRepository

public Repository getDefaultRepository()

getCreatorUser

public String getCreatorUser()

setCreatorUser

public void setCreatorUser(String creatorUser)

getCloverBuild

public TestBuildDetails.CloverBuild getCloverBuild()

setCloverBuild

public void setCloverBuild(TestBuildDetails.CloverBuild cloverBuild)

isExternals

public boolean isExternals()

setExternals

public void setExternals(boolean externals)

isExport

public boolean isExport()

setExport

public void setExport(boolean export)

getMaster

public TestBuildDetails getMaster()

getBranchName

public String getBranchName()

setBranchName

public void setBranchName(String branchName)

getGlobalRepositoryName

public String getGlobalRepositoryName()

setGlobalRepositoryName

public void setGlobalRepositoryName(String globalRepositoryName)

getRepositoryDisplayName

public String getRepositoryDisplayName()

setDisabledAndNoAdvancedOption

public void setDisabledAndNoAdvancedOption(boolean disabledAndNoAdvancedOption)

isNoAdvanced

public boolean isNoAdvanced()

setNoAdvanced

public void setNoAdvanced(boolean noAdvanced)

isDisabled

public boolean isDisabled()

setDisabled

public void setDisabled(boolean disabled)

addStages

public void addStages(TestStageDetails... stages)

getStages

public List<TestStageDetails> getStages()

isTriggerInitialManualBuild

public boolean isTriggerInitialManualBuild()

setTriggerInitialManualBuild

public TestBuildDetails setTriggerInitialManualBuild(boolean triggerInitialManualBuild)

isIsolateCommits

public boolean isIsolateCommits()

setIsolateCommits

public void setIsolateCommits(boolean isolateCommits)

getLinkedRepositoryAccess

public RepositoryConfigurationService.LinkedRepositoryAccess getLinkedRepositoryAccess()

setLinkedRepositoryAccess

public void setLinkedRepositoryAccess(RepositoryConfigurationService.LinkedRepositoryAccess linkedRepositoryAccess)

getDefaultJob

@NotNull
public TestJobDetails getDefaultJob()
Returns:
chain's default job

getStage

@Nullable
public TestStageDetails getStage(String stageName)

getJob

@Nullable
public TestJobDetails getJob(@NotNull
                                      TestStageDetails stage,
                                      @NotNull
                                      String partialJobKey)

getJob

public TestJobDetails getJob(@NotNull
                             PlanKey jobKey)

addJob

public TestJobDetails addJob(String stageName,
                             String jobKey,
                             String jobName)
Create a TestBuildDetails object representing job.

Parameters:
jobKey - job key
jobName - job name
Returns:
new job

toString

public String toString()
Overrides:
toString in class Object

getExtraData

public Map<String,Object> getExtraData()

getTriggerSettings

public TriggerSettings getTriggerSettings()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.