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 protected
AbstractTaskConfigurationUpgradeTask(@NotNull String shortDescription)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doUpgrade()
Perform the upgrade.protected boolean
environmentCanBeSkipped(BuildConfiguration buildConfiguration)
protected boolean
jobCanBeSkipped(@NotNull BuildDefinitionXml buildDefinitionXml)
protected abstract boolean
updateTaskDefinition(TaskDefinition taskDefinition)
Update task definition.void
upgradeJob(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 Exception
Description copied from interface:UpgradeTask
Perform 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)
-
-