Class AbstractTaskConfigurationUpgradeTask
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.AbstractUpgradeTask
-
- com.atlassian.bamboo.upgrade.tasks.AbstractTaskConfigurationUpgradeTask
-
- All Implemented Interfaces:
UpgradeTask
public abstract class AbstractTaskConfigurationUpgradeTask extends AbstractUpgradeTask
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTaskConfigurationUpgradeTask(@NotNull String shortDescription)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoUpgrade()Perform the upgrade.protected booleanenvironmentCanBeSkipped(BuildConfiguration buildConfiguration)protected booleanjobCanBeSkipped(@NotNull BuildDefinitionXml buildDefinitionXml)protected abstract booleanupdateTaskDefinition(TaskDefinition taskDefinition)Update task definition.voidupgradeJob(Job job)-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
-
-
-
Constructor Detail
-
AbstractTaskConfigurationUpgradeTask
protected AbstractTaskConfigurationUpgradeTask(@NotNull @NotNull String shortDescription)
-
-
Method Detail
-
doUpgrade
public void doUpgrade() throws ExceptionDescription copied from interface:UpgradeTaskPerform the upgrade.- Throws:
Exception- to signalize error during upgrade process
-
upgradeJob
public void upgradeJob(Job job)
-
jobCanBeSkipped
protected boolean jobCanBeSkipped(@NotNull @NotNull BuildDefinitionXml buildDefinitionXml)
-
updateTaskDefinition
protected abstract boolean updateTaskDefinition(TaskDefinition taskDefinition)
Update task definition. The task may come from deployments or builds.- Returns:
- false if the task wasn't modified, true otherwise
-
environmentCanBeSkipped
protected boolean environmentCanBeSkipped(BuildConfiguration buildConfiguration)
-
-