Package com.atlassian.bamboo.testutils
Class TestBuildDetailsBuilder
- java.lang.Object
-
- com.atlassian.bamboo.testutils.TestBuildDetailsBuilder
-
public class TestBuildDetailsBuilder extends Object
Actually not a real builder
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SCRIPT_COMMAND
-
Constructor Summary
Constructors Constructor Description TestBuildDetailsBuilder()
TestBuildDetailsBuilder(TestBuildDetails build)
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_SCRIPT_COMMAND
public static final String DEFAULT_SCRIPT_COMMAND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestBuildDetailsBuilder
public TestBuildDetailsBuilder()
-
TestBuildDetailsBuilder
public TestBuildDetailsBuilder(TestBuildDetails build)
-
-
Method Detail
-
withProject
public TestBuildDetailsBuilder withProject(@NotNull @NotNull ProjectDescriptor projectDescriptor)
-
withName
public TestBuildDetailsBuilder withName(@NotNull @NotNull String planName)
-
withNoInitialBuild
public TestBuildDetailsBuilder withNoInitialBuild()
-
withManualBuild
public TestBuildDetailsBuilder withManualBuild()
-
withBuilder
public TestBuildDetailsBuilder withBuilder(@NotNull TestJobDetails.Builder builder)
-
withCommand
public TestBuildDetailsBuilder withCommand(@NotNull @NotNull String command)
-
withWorkingDirectory
public TestBuildDetailsBuilder withWorkingDirectory(String workingDirectory)
-
withNoTests
public TestBuildDetailsBuilder withNoTests()
-
withJdk
public TestBuildDetailsBuilder withJdk(@NotNull @NotNull String jdk)
-
withMaxConcurrentBuilds
public TestBuildDetailsBuilder withMaxConcurrentBuilds(int maxConcurrentBuilds)
-
build
public TestBuildDetails build()
-
buildJob
public TestJobDetails buildJob()
-
withLinkedRepository
public TestBuildDetailsBuilder withLinkedRepository(String repositoryName)
-
withNoScm
public TestBuildDetailsBuilder withNoScm()
-
withGit
public TestBuildDetailsBuilder withGit()
-
withGit
public TestBuildDetailsBuilder withGit(@NotNull @NotNull GitRepositoryDescriptor repositoryDescriptor)
-
withGit
public TestBuildDetailsBuilder withGit(@NotNull @NotNull String repositoryUrl)
-
withGit
public TestBuildDetailsBuilder withGit(@NotNull @NotNull String repositoryUrl, boolean lfs)
-
withRepositoryPasswordAuthentication
public TestBuildDetailsBuilder withRepositoryPasswordAuthentication(@NotNull @NotNull String user, @NotNull @NotNull String password)
-
withRepositorySSHKey
public TestBuildDetailsBuilder withRepositorySSHKey(@NotNull @NotNull String sshKeyPath)
-
withGitForCommits
public TestBuildDetailsBuilder withGitForCommits()
-
withGitRepositoryBranch
public TestBuildDetailsBuilder withGitRepositoryBranch(String repositoryBranch)
-
withSvn
public TestBuildDetailsBuilder withSvn(@NotNull @NotNull String svnSubDir)
-
withSvn
public TestBuildDetailsBuilder withSvn(Class<?> testClass, @NotNull @NotNull String svnSubDir)
-
withSvn
public TestBuildDetailsBuilder withSvn(@NotNull @NotNull RepositoryDescriptor repositoryDescriptor, @NotNull @NotNull String svnSubDir)
-
withSvnBranchDetectionOverride
public TestBuildDetailsBuilder withSvnBranchDetectionOverride(@NotNull @NotNull String branchDetectionOverride)
-
withAntTask
public TestBuildDetailsBuilder withAntTask(@Nullable @Nullable String workingDirectory)
-
withMavenTask
public TestBuildDetailsBuilder withMavenTask()
-
withMavenTask
public TestBuildDetailsBuilder withMavenTask(@NotNull @NotNull String command)
-
withMaven3Task
public TestBuildDetailsBuilder withMaven3Task(@NotNull @NotNull String command)
-
withMavenTask
public TestBuildDetailsBuilder withMavenTask(@Nullable @Nullable String workingDirectory, @NotNull @NotNull String goal)
-
withScriptTask
public TestBuildDetailsBuilder withScriptTask()
-
withScriptTask
public TestBuildDetailsBuilder withScriptTask(@NotNull @NotNull String scriptBody)
-
disabled
public TestBuildDetailsBuilder disabled()
-
enabled
public TestBuildDetailsBuilder enabled()
-
withNoAdvancedOption
public TestBuildDetailsBuilder withNoAdvancedOption()
-
withRepositoryRelativePath
public TestBuildDetailsBuilder withRepositoryRelativePath(String relativePath)
-
withManualStage
public TestBuildDetailsBuilder withManualStage()
-
withArtifact
public TestBuildDetailsBuilder withArtifact(Consumer<TestArtifactDetails.Builder> consumer)
-
withLabels
public TestBuildDetailsBuilder withLabels(String... labels)
-
trigger
public TestBuildDetailsBuilder trigger(TestTriggerDetails triggerDetails)
-
withCreatePlanBranchOption
public TestBuildDetailsBuilder withCreatePlanBranchOption(TestBuildDetails.CreatePlanBranchOption createPlanBranchOption)
-
-