Class DeploymentResultDeletionServiceImpl

    • Method Detail

      • 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
      • 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