Class TestBuildDetails
- java.lang.Object
-
- com.atlassian.bamboo.testutils.model.TestBuildDetails
-
public class TestBuildDetails extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestBuildDetails.CloverBuild
static class
TestBuildDetails.CreatePlanBranchOption
-
Field Summary
Fields Modifier and Type Field Description static String
SUBDIR_100_TESTS
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
Constructors Constructor Description 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, @Nullable TestBuildDetails master)
TestBuildDetails(String projectName, String projectKey, String buildKey, String buildName)
-
Method Summary
-
-
-
Field Detail
-
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 @Nullable TestBuildDetails master)
-
-
Method Detail
-
getFullName
public String getFullName()
-
setManualBuild
public TestBuildDetails setManualBuild()
-
addTrigger
public void addTrigger(TestTriggerDetails triggerDetails)
-
setRepository
public void setRepository(Repository repository)
-
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()
-
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)
-
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)
-
getRepositoryAccess
public VcsRepositoryConfigurationService.RepositoryAccess getRepositoryAccess()
-
setRepositoryAccess
public void setRepositoryAccess(VcsRepositoryConfigurationService.RepositoryAccess repositoryAccess)
-
getMaxConcurrentBuilds
@Nullable public @Nullable Integer getMaxConcurrentBuilds()
-
setMaxConcurrentBuilds
public void setMaxConcurrentBuilds(@Nullable @Nullable Integer maxConcurrentBuilds)
-
getBranchDetectionOverride
@Nullable public @Nullable String getBranchDetectionOverride()
-
setBranchDetectionOverride
public void setBranchDetectionOverride(String branchDetectionOverride)
-
isPublicPlanAccess
public boolean isPublicPlanAccess()
-
setPublicPlanAccess
public void setPublicPlanAccess(boolean publicPlanAccess)
-
getDefaultJob
@NotNull public @NotNull TestJobDetails getDefaultJob()
- Returns:
- chain's default job
-
getStage
@Nullable public @Nullable TestStageDetails getStage(String stageName)
-
getJob
@Nullable public @Nullable TestJobDetails getJob(@NotNull @NotNull TestStageDetails stage, @NotNull @NotNull String partialJobKey)
-
getJob
public TestJobDetails getJob(@NotNull @NotNull PlanKey jobKey)
-
addJob
public TestJobDetails addJob(String stageName, String jobKey, String jobName)
Create a TestBuildDetails object representing job.- Parameters:
jobKey
- job keyjobName
- job name- Returns:
- new job
-
getTriggers
@NotNull public @NotNull Set<TestTriggerDetails> getTriggers()
-
addLabel
public void addLabel(String label)
-
getCreatePlanBranchOption
public TestBuildDetails.CreatePlanBranchOption getCreatePlanBranchOption()
-
setCreatePlanBranchOption
public void setCreatePlanBranchOption(TestBuildDetails.CreatePlanBranchOption createPlanBranchOption)
-
-