Last updated Dec 8, 2017

Bamboo API Changes for Bamboo 4.0

todo: BranchAwareRepository (if it survive reviewing)

Additions to rest API

Description

Method

Url

Get the labels for a plan

GET

/api/{api-version}/plan/{projectKey-planKey}/label

Add a label to a plan

POST

/api/{api-version}/plan/{projectKey-planKey}/label

Delete a label from a plan

DELETE

/api/{api-version}/plan/{projectKey-planKey}/label/{labelName}

Changes in the API

c.a.b.task.repository.RepositoryAwareTaskConfigurator

Changed argument type from Buildable to Job:

1
2
@NotNull
List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull final TaskDefinition taskDefinition,
                                                     @NotNull final Buildable buildable);

void handleRepositoryIdChanged(@NotNull final TaskDefinition taskDefinition,
                               @NotNull final Buildable buildable,
                               @NotNull final Map<Long, Long> repositoryIdChanges);
1
2
@NotNull
List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull final TaskDefinition taskDefinition,
                                                     @NotNull final Job job);

void handleRepositoryIdChanged(@NotNull final TaskDefinition taskDefinition,
                               @NotNull final Job job,
                               @NotNull final Map<Long, Long> repositoryIdChanges);

Removed deprecated classes

List of removed classes (c.a.b is a shortcut for com.atlassian.bamboo)

  • c.a.b.build.creation.BuildCreationService
  • c.a.b.build.creation.BuilderConfigHelper
  • c.a.b.build.creation.BuildPlanConstructor
  • c.a.b.build.creation.BuildPlanConstructorFactory
  • c.a.b.build.creation.BuildPlanConstructorImpl
  • c.a.b.build.Build
  • c.a.b.build.BuildResultNavigatorHelper
  • c.a.b.build.DefaultBuild
  • c.a.b.builder.BuildExecutor
  • c.a.b.builder.Builder
  • c.a.b.builder.BuilderManager
  • c.a.b.builder.EnvironmentVariablesAwareBuilder
  • c.a.b.builder.MutableEnvironmentVariablesAwareBuilder
  • c.a.b.builder.PostConfigurableBuilder
  • c.a.b.task.TaskRequirementSupport
1
2
/**
 * ...
 * @deprecated since 3.3 use com.atlassian.bamboo.task.BuildTaskRequirementSupport
 */
public interface TaskRequirementSupport extends TaskConfigurator
{
  • c.a.b.v2.build.BuilderV2
  • c.a.b.ww2.aware.BuildCreationAware
  • c.a.breadcrumbs.build.AbstractBuildCrumb

Removed deprecated methods

  • c.a.b.build.BuildDefinition#isInheritRepository
  • c.a.b.build.BuildDefinition#setInheritRepository
  • c.a.b.build.BuildDefinition#getWebRepositoryViewer
  • c.a.b.build.BuildDefinition#setWebRepositoryViewer
  • c.a.b.build.BuildDefinition#setRepository
  • c.a.b.build.BuildDefinition#getXmppMessageSender
  • c.a.b.build.BuildDefinition#setXmppMessageSender
  • c.a.b.build.BuildDefinition#getBuilder
  • c.a.b.build.BuildDefinition#setBuilder
  • c.a.b.v2.build.agent.capability.CapabilitySetManager#getExecutableBuilds
  • c.a.b.v2.trigger.ChangeDetectionManager#collectChangesSinceBuild
  • c.a.b.v2.trigger.ChangeDetectionManager#collectChangesSinceLastBuild
  • c.a.b.repository.perforce.PerforceRepository#getAllSourceCode
  • c.a.b.resultsummary.BuildResultsSummary#getAllFailedResultSummaries
  • c.a.b.resultsummary.BuildResultsSummary#getBuildResultsSummaryById
  • c.a.b.resultsummary.BuildResultsSummary#findBuildResultSummaries
  • c.a.b.resultsummary.BuildResultsSummary#findBuildResultSummariesForBuild
  • c.a.b.resultsummary.BuildResultsSummary#countBuildResultSummaries
  • c.a.b.resultsummary.BuildResultsSummary#getLastSuccessfulBuildForImageConfiguration
  • c.a.b.security.acegi.acls.BambooAclUpdateHelper#createNewDefaultAcl
  • c.a.b.utils.BambooPredicates#dependencyChildIsBuild
  • c.a.b.utils.BambooPredicates#dependencyParentIsBuild

Removed deprecated plugins

  • c.a.b.plugins.compatibilitytask:atlassian-bamboo-plugin-compatibility-task (containing c.a.b.tasks.compatibility.BuilderCompatibilityTask)

Deprecated:

  • com.atlassian.bamboo.schedule.PlanScheduler.executeWithoutPlanSchdules -> executeWithoutPlanSchedules

Rate this page: