Package com.atlassian.bamboo.upgrade
Class AbstractRepeatableTask
java.lang.Object
com.atlassian.bamboo.upgrade.AbstractUpgradeTask
com.atlassian.bamboo.upgrade.AbstractRepeatableTask
- All Implemented Interfaces:
UpgradeTask
- Direct Known Subclasses:
AbstractFormerCloudUpgrade
,AddIndicesToForeignKeys
,ApplySchemaFixups
,UpdateSpecsRunnerDockerImage
An upgrade task that can be run as many times as needed.
Repeatable task are invoked in order of their build numbers after all other upgrade tasks.
Each task decides individually if it needs to do anything or not.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
Constructor Summary
ConstructorDescriptionAbstractRepeatableTask
(@NotNull String buildNumber, @NotNull String shortDescription) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
void
Perform the upgrade.protected @Nullable String
Unique key of the task, used to run the task just once.protected boolean
protected boolean
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
Field Details
-
bandanaManager
@Autowired protected com.atlassian.bandana.BandanaManager bandanaManager
-
-
Constructor Details
-
AbstractRepeatableTask
-
-
Method Details
-
doRepeatableTask
- Throws:
Exception
-
getRunOnlyOnceId
Unique key of the task, used to run the task just once. -
hasBeenRun
protected boolean hasBeenRun() -
needsUpgrade
protected boolean needsUpgrade() -
doUpgrade
Description copied from interface:UpgradeTask
Perform the upgrade.- Throws:
Exception
- to signalize error during upgrade process
-