com.atlassian.bamboo.testutils
Class TestBuildDetails
java.lang.Object
com.atlassian.bamboo.testutils.TestBuildDetails
public class TestBuildDetails
- extends java.lang.Object
Constructor Summary |
TestBuildDetails(long timeId,
java.lang.String projectName,
java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildName)
|
TestBuildDetails(ProjectDescriptor project,
java.lang.String buildKey,
java.lang.String buildName)
|
TestBuildDetails(ProjectDescriptor project,
java.lang.String buildKey,
java.lang.String buildName,
TestBuildDetails master)
|
TestBuildDetails(java.lang.String projectName,
java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REPOSITORY_CVS
public static final java.lang.String REPOSITORY_CVS
- See Also:
- Constant Field Values
REPOSITORY_SVN
public static final java.lang.String REPOSITORY_SVN
- See Also:
- Constant Field Values
REPOSITORY_PERFORCE
public static final java.lang.String REPOSITORY_PERFORCE
- See Also:
- Constant Field Values
REPOSITORY_HG
public static final java.lang.String REPOSITORY_HG
- See Also:
- Constant Field Values
REPOSITORY_GIT
public static final java.lang.String REPOSITORY_GIT
- See Also:
- Constant Field Values
BUILDER_ANT
public static final java.lang.String BUILDER_ANT
- See Also:
- Constant Field Values
BUILDER_MAVEN
public static final java.lang.String BUILDER_MAVEN
- See Also:
- Constant Field Values
BUILDER_MAVEN2
public static final java.lang.String BUILDER_MAVEN2
- See Also:
- Constant Field Values
BUILDER_SCRIPT
public static final java.lang.String BUILDER_SCRIPT
- See Also:
- Constant Field Values
REPOSITORY_NONE
public static final java.lang.String REPOSITORY_NONE
- See Also:
- Constant Field Values
DEFAULT_KEY_FILE
public static final java.lang.String DEFAULT_KEY_FILE
- See Also:
- Constant Field Values
SUBDIR_CVS_SUCCESS
public static final java.lang.String SUBDIR_CVS_SUCCESS
- See Also:
- Constant Field Values
SUBDIR_RUBY_TESTS
public static final java.lang.String SUBDIR_RUBY_TESTS
- See Also:
- Constant Field Values
SUBDIR_CVS_FAST
public static final java.lang.String SUBDIR_CVS_FAST
- See Also:
- Constant Field Values
SUBDIR_CVS_FAILED
public static final java.lang.String SUBDIR_CVS_FAILED
- See Also:
- Constant Field Values
SUBDIR_CVS_MIXED
public static final java.lang.String SUBDIR_CVS_MIXED
- See Also:
- Constant Field Values
SUBDIR_CVS_SCRIPT
public static final java.lang.String SUBDIR_CVS_SCRIPT
- See Also:
- Constant Field Values
SUBDIR_CVS_LONG
public static final java.lang.String SUBDIR_CVS_LONG
- See Also:
- Constant Field Values
SUBDIR_CVS_ARTIFACTS
public static final java.lang.String SUBDIR_CVS_ARTIFACTS
- See Also:
- Constant Field Values
SUBDIR_PERFORCE_SUCCESS
public static final java.lang.String SUBDIR_PERFORCE_SUCCESS
- See Also:
- Constant Field Values
SUBDIR_PERFORCE_FAILED
public static final java.lang.String SUBDIR_PERFORCE_FAILED
- See Also:
- Constant Field Values
SUBDIR_SVN_SUCCESS
public static final java.lang.String SUBDIR_SVN_SUCCESS
- See Also:
- Constant Field Values
SUBDIR_SVN_FAILED
public static final java.lang.String SUBDIR_SVN_FAILED
- See Also:
- Constant Field Values
SUBDIR_100_TESTS
public static final java.lang.String SUBDIR_100_TESTS
- See Also:
- Constant Field Values
SUBDIR_SVN_MIXED
public static final java.lang.String SUBDIR_SVN_MIXED
- See Also:
- Constant Field Values
SUBDIR_SVN_LONG
public static final java.lang.String SUBDIR_SVN_LONG
- See Also:
- Constant Field Values
SUBDIR_SVN_FAST
public static final java.lang.String SUBDIR_SVN_FAST
- See Also:
- Constant Field Values
SUBDIR_SVN_TWO_FAILED_TESTS
public static final java.lang.String SUBDIR_SVN_TWO_FAILED_TESTS
- See Also:
- Constant Field Values
SUBDIR_SVN_FAIL_ON_PROPERTY
public static final java.lang.String SUBDIR_SVN_FAIL_ON_PROPERTY
- See Also:
- Constant Field Values
INCLUDE_ONLY_MATCHES
public static final java.lang.String INCLUDE_ONLY_MATCHES
- See Also:
- Constant Field Values
EXCLUDE_ALL_EXCEPT_MATCHES
public static final java.lang.String EXCLUDE_ALL_EXCEPT_MATCHES
- See Also:
- Constant Field Values
SUBDIR_CVS_SUCCESS_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_SUCCESS_TESTS
SUBDIR_CVS_FAILED_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_FAILED_TESTS
SUBDIR_CVS_MIXED_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_MIXED_TESTS
SUBDIR_CVS_SCRIPT_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_SCRIPT_TESTS
SUBDIR_CVS_LONG_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_LONG_TESTS
SUBDIR_CVS_ARTIFACTS_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_CVS_ARTIFACTS_TESTS
SUBDIR_PERFORCE_SUCCESS_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_PERFORCE_SUCCESS_TESTS
SUBDIR_PERFORCE_FAILED_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_PERFORCE_FAILED_TESTS
SUBDIR_SVN_SUCCESS_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_SVN_SUCCESS_TESTS
SUBDIR_SVN_FAILED_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_SVN_FAILED_TESTS
SUBDIR_SVN_MIXED_TESTS
public static final java.util.Collection<TestClassDescriptor> SUBDIR_SVN_MIXED_TESTS
TestBuildDetails
public TestBuildDetails(java.lang.String projectName,
java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildName)
TestBuildDetails
public TestBuildDetails(long timeId,
java.lang.String projectName,
java.lang.String projectKey,
java.lang.String buildKey,
java.lang.String buildName)
TestBuildDetails
public TestBuildDetails(ProjectDescriptor project,
java.lang.String buildKey,
java.lang.String buildName)
TestBuildDetails
public TestBuildDetails(ProjectDescriptor project,
java.lang.String buildKey,
java.lang.String buildName,
@Nullable
TestBuildDetails master)
replaceSvnUrlModule
public void replaceSvnUrlModule(java.lang.String newModule)
getMaxReadyTime
public long getMaxReadyTime()
getTestsPassed
public int getTestsPassed()
getTestsFailed
public int getTestsFailed()
getTestQuantity
public int getTestQuantity()
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String key)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getProject
public ProjectDescriptor getProject()
setProject
public void setProject(ProjectDescriptor project)
getBuildKey
public java.lang.String getBuildKey()
setBuildKey
public void setBuildKey(java.lang.String buildKey)
getBuildName
public java.lang.String getBuildName()
setBuildName
public void setBuildName(java.lang.String buildName)
getBuildDescription
public java.lang.String getBuildDescription()
setBuildDescription
public void setBuildDescription(java.lang.String buildDescription)
getRepository
public java.lang.String getRepository()
setRepository
public void setRepository(java.lang.String repository)
getAuthenticationMethod
public TestBuildDetails.RepositoryAuthenticationType getAuthenticationMethod()
setAuthenticationMethod
public void setAuthenticationMethod(TestBuildDetails.RepositoryAuthenticationType authenticationMethod)
getKeyFile
public java.lang.String getKeyFile()
setKeyFile
public void setKeyFile(java.lang.String keyFile)
getBuilder
public java.lang.String getBuilder()
setBuilder
public void setBuilder(java.lang.String builder)
getModule_subdirectory
@NotNull
public java.lang.String getModule_subdirectory()
setModule_subdirectory
public void setModule_subdirectory(java.lang.String module_subdirectory)
isTestsEnabled
public boolean isTestsEnabled()
setTestsEnabled
public void setTestsEnabled(boolean testsEnabled)
isArtifactsEnabled
public boolean isArtifactsEnabled()
setArtifactsEnabled
public void setArtifactsEnabled(boolean artifactsEnabled)
getArtifactSrcDirectory
public java.lang.String getArtifactSrcDirectory()
setArtifactSrcDirectory
public void setArtifactSrcDirectory(java.lang.String artifactSrcDirectory)
getCheckoutTime
public long getCheckoutTime()
setCheckoutTime
public void setCheckoutTime(long checkoutTime)
getBuildTime
public long getBuildTime()
setBuildTime
public void setBuildTime(long buildTime)
getTestClasses
public java.util.Collection<TestClassDescriptor> getTestClasses()
setTestClasses
public void setTestClasses(java.util.Collection<TestClassDescriptor> testClasses)
getScriptBody
public java.lang.String getScriptBody()
setScriptBody
public TestBuildDetails setScriptBody(java.lang.String scriptBody)
getGoal
public java.lang.String getGoal()
setGoal
public void setGoal(java.lang.String goal)
getSvnUrl
public java.lang.String getSvnUrl()
setSvnUrl
public void setSvnUrl(java.lang.String svnUrl)
getRepositoryUsername
public java.lang.String getRepositoryUsername()
setRepositoryUsername
public void setRepositoryUsername(java.lang.String repositoryUsername)
getRepositoryPassword
public java.lang.String getRepositoryPassword()
setRepositoryPassword
public void setRepositoryPassword(java.lang.String repositoryPassword)
getCreatorUser
public java.lang.String getCreatorUser()
setCreatorUser
public void setCreatorUser(java.lang.String creatorUser)
getPollingTime
public int getPollingTime()
setPollingTime
public void setPollingTime(int pollingTime)
isDailyBuild
public boolean isDailyBuild()
getMinutesAfterForDaily
public int getMinutesAfterForDaily()
setDailyBuildMinutes
public void setDailyBuildMinutes(int minutesAfterForDaily)
- Sets how many minutes after now will the dailing trigger be set
- Parameters:
minutesAfterForDaily
- how many minutes after now will the dailing trigger be set
getCronExpression
public java.lang.String getCronExpression()
setCronExpression
public void setCronExpression(java.lang.String cronExpression)
isManualBuild
public boolean isManualBuild()
setManualBuild
public void setManualBuild(boolean manualBuild)
getCloverBuild
public TestBuildDetails.CloverBuild getCloverBuild()
setCloverBuild
public void setCloverBuild(TestBuildDetails.CloverBuild cloverBuild)
getIncludeExcludeFileOption
public java.lang.String getIncludeExcludeFileOption()
setIncludeExcludeFileOption
public void setIncludeExcludeFileOption(java.lang.String includeExcludeFileOption)
getIncludeExcludeRegex
public java.lang.String getIncludeExcludeRegex()
setIncludeExcludeRegex
public void setIncludeExcludeRegex(java.lang.String includeExcludeRegex)
getTriggerIp
public java.lang.String getTriggerIp()
setTriggerIp
public void setTriggerIp(java.lang.String triggerIp)
getEnvironmentVariables
public java.lang.String getEnvironmentVariables()
setEnvironmentVariables
public void setEnvironmentVariables(java.lang.String environmentVariables)
isExternals
public boolean isExternals()
setExternals
public void setExternals(boolean externals)
isExport
public boolean isExport()
setExport
public void setExport(boolean export)
getArtifactName
public java.lang.String getArtifactName()
setArtifactName
public void setArtifactName(java.lang.String artifactName)
getArtifactCopyPattern
public java.lang.String getArtifactCopyPattern()
setArtifactCopyPattern
public void setArtifactCopyPattern(java.lang.String artifactCopyPattern)
isCleanCheckout
public boolean isCleanCheckout()
setCleanCheckout
public void setCleanCheckout(boolean cleanCheckout)
getMaster
public TestBuildDetails getMaster()
getBranchName
public java.lang.String getBranchName()
setBranchName
public void setBranchName(java.lang.String branchName)
getPerforcePort
public java.lang.String getPerforcePort()
setPerforcePort
public void setPerforcePort(java.lang.String perforcePort)
getHgRepositoryUrl
public java.lang.String getHgRepositoryUrl()
setHgRepositoryUrl
public void setHgRepositoryUrl(java.lang.String hgRepositoryUrl)
getGitRepositoryUrl
public java.lang.String getGitRepositoryUrl()
setGitRepositoryUrl
public void setGitRepositoryUrl(java.lang.String gitRepositoryUrl)
getHgAuthType
public java.lang.String getHgAuthType()
setHgAuthType
public void setHgAuthType(java.lang.String hgAuthType)
getHgSshKeyPath
public java.lang.String getHgSshKeyPath()
setHgSshKeyPath
public void setHgSshKeyPath(java.lang.String hgSshKeyPath)
getHgSshPassPhrase
public java.lang.String getHgSshPassPhrase()
setHgSshPassPhrase
public void setHgSshPassPhrase(java.lang.String hgSshPassPhrase)
setRepositoryDescriptor
public void setRepositoryDescriptor(RepositoryDescriptor repositoryDescriptor)
getRepositoryDescriptor
public RepositoryDescriptor getRepositoryDescriptor()
getGlobalRepositoryName
public java.lang.String getGlobalRepositoryName()
setGlobalRepositoryName
public void setGlobalRepositoryName(java.lang.String globalRepositoryName)
getCvsRoot
public java.lang.String getCvsRoot()
setCvsRoot
public void setCvsRoot(java.lang.String cvsRoot)
getJdk
public java.lang.String getJdk()
setJdk
public void setJdk(java.lang.String jdk)
setDisabledAndNoAdvancedOption
public void setDisabledAndNoAdvancedOption(boolean disabledAndNoAdvancedOption)
isNoAdvanced
public boolean isNoAdvanced()
setNoAdvanced
public void setNoAdvanced(boolean noAdvanced)
isDisabled
public boolean isDisabled()
setDisabled
public TestBuildDetails setDisabled(boolean disabled)
setPlanType
public void setPlanType(PlanType planType)
getPlanType
public PlanType getPlanType()
addStages
public void addStages(TestStageDetails... stages)
getStages
public java.util.List<TestStageDetails> getStages()
isTriggerInitialManualBuild
public boolean isTriggerInitialManualBuild()
setTriggerInitialManualBuild
public void setTriggerInitialManualBuild(boolean triggerInitialManualBuild)
isIsolateCommits
public boolean isIsolateCommits()
setIsolateCommits
public void setIsolateCommits(boolean isolateCommits)
getDefaultJob
@NotNull
public TestBuildDetails getDefaultJob()
- Return chain's default job. Should be called after createPlan(TestBuildDetails)
- Returns:
-
- Throws:
java.lang.Exception
getStage
@Nullable
public TestStageDetails getStage(java.lang.String stageName)
getJob
@Nullable
public TestBuildDetails getJob(@NotNull
TestStageDetails stage,
@NotNull
java.lang.String jobKey)
getJob
@Nullable
public TestBuildDetails getJob(@NotNull
java.lang.String jobKey)
addJob
public TestBuildDetails addJob(java.lang.String stageName,
java.lang.String jobKey,
java.lang.String jobName)
- Create a TestBuildDetails object representing job. Multiple properties are set with defaults from the chain.
Newly created job is NOT added to internal structure of the chain.
- Parameters:
jobKey
- job keyjobName
- job name
- Returns:
createJob
public TestBuildDetails createJob(java.lang.String jobKey,
java.lang.String jobName)
- Create a TestBuildDetails object representing job. Multiple properties are set with defaults from the chain.
Newly created job is NOT added to internal structure of the chain.
- Parameters:
jobKey
- job keyjobName
- job name
- Returns:
createDefaultStageAndJob
public void createDefaultStageAndJob()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getExtraData
public java.util.Map<java.lang.String,java.lang.Object> getExtraData()
Copyright © 2012 Atlassian. All Rights Reserved.