Class DeploymentResultDeletionServiceImpl

java.lang.Object
com.atlassian.bamboo.deployments.results.service.DeploymentResultDeletionServiceImpl
All Implemented Interfaces:
DeploymentResultDeletionService

public class DeploymentResultDeletionServiceImpl extends Object implements DeploymentResultDeletionService
  • Constructor Details

  • Method Details

    • delete

      public void delete(long deploymentResultId)
      Affected tables: - DEPLOYMENT_RESULT (manual, Hibernate) - DEPLOYMENT_RESULT_CUSTOMDATA (cascade) - DEPLOYMENT_VARIABLE_SUBS (manual, JDBC query) - WEBHOOK_RESPONSE (manual, Hibernate)

      Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log

      Specified by:
      delete in interface DeploymentResultDeletionService
      Parameters:
      deploymentResultId - id of Deployment Result to delete
    • deleteForEnvironment

      public int deleteForEnvironment(long environmentId)
      Description copied from interface: DeploymentResultDeletionService
      Delete batch of Deployment Results and related records.
      Specified by:
      deleteForEnvironment in interface DeploymentResultDeletionService
      Parameters:
      environmentId - id of Environment which DeploymentResults are to be deleted
    • unlinkFromVersion

      public int unlinkFromVersion(long deploymentVersionId)
      Description copied from interface: DeploymentResultDeletionService
      Unlink Deployment Results from Deployment Version.
      Specified by:
      unlinkFromVersion in interface DeploymentResultDeletionService
      Parameters:
      deploymentVersionId - id of DeploymentVersion which DeploymentRecords should be unlinked from
    • unlinkFromVersionForProject

      public int unlinkFromVersionForProject(long deploymentProjectId)
      Description copied from interface: DeploymentResultDeletionService
      Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
      Specified by:
      unlinkFromVersionForProject in interface DeploymentResultDeletionService
      Parameters:
      deploymentProjectId - id of DeploymentProject
    • removeLogs

      public void removeLogs(long deploymentResultId, long maxAllowedLogSize)
      Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
      Specified by:
      removeLogs in interface DeploymentResultDeletionService
      Parameters:
      deploymentResultId - id of Deployment Result
      maxAllowedLogSize - delete only files longer than allowed size, when -1 then delete all files