Class VcsCheckoutTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<VcsCheckoutTask,VcsCheckoutTaskProperties>
com.atlassian.bamboo.specs.builders.task.VcsCheckoutTask
Represents task that checks out selected repositories to the build working directory.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds checkout request for the plan's default repository into the build directory.addCheckoutOfRepository
(@NotNull VcsRepositoryIdentifier repositoryIdentifier) Adds checkout request for one of plan's repositories into the build directory.addCheckoutOfRepository
(@NotNull String repositoryName) Adds checkout request for one of plan's repositories into the build directory.protected @NotNull VcsCheckoutTaskProperties
build()
checkoutItems
(@NotNull CheckoutItem... checkoutItems) Adds checkout requests.cleanCheckout
(boolean cleanCheckout) Enables/disabled clean checkout.boolean
int
hashCode()
toString()
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements
-
Constructor Details
-
VcsCheckoutTask
public VcsCheckoutTask()
-
-
Method Details
-
addCheckoutOfDefaultRepository
Adds checkout request for the plan's default repository into the build directory. Default repository is the repository which is the first on the list of plan's repositories.The repository will be checked out to the build's working directory. For more control over checkout path, use
checkoutItems(CheckoutItem...)
. -
addCheckoutOfRepository
Adds checkout request for one of plan's repositories into the build directory.The repository will be checked out to the build's working directory. For more control over checkout path, use
checkoutItems(CheckoutItem...)
. -
addCheckoutOfRepository
public VcsCheckoutTask addCheckoutOfRepository(@NotNull @NotNull VcsRepositoryIdentifier repositoryIdentifier) Adds checkout request for one of plan's repositories into the build directory.The repository will be checked out to the build's working directory. For more control over checkout path, use
checkoutItems(CheckoutItem...)
. -
checkoutItems
Adds checkout requests. -
cleanCheckout
Enables/disabled clean checkout. If set, the task cleans the content of the checkout target directory before checking out the source. Off by default. -
build
- Specified by:
build
in classTask<VcsCheckoutTask,
VcsCheckoutTaskProperties>
-
equals
- Overrides:
equals
in classTask<VcsCheckoutTask,
VcsCheckoutTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<VcsCheckoutTask,
VcsCheckoutTaskProperties>
-
toString
- Overrides:
toString
in classTask<VcsCheckoutTask,
VcsCheckoutTaskProperties>
-