public class DeploymentResultDeletionServiceImpl extends Object implements DeploymentResultDeletionService
| Constructor and Description |
|---|
DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
DeploymentResultDao deploymentResultDao,
EnvironmentDao environmentDao,
VariableContextBaselineDao variableContextBaselineDao,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(long deploymentResultId)
Affected tables:
- DEPLOYMENT_RESULT (manual, Hibernate)
- DEPLOYMENT_RESULT_CUSTOMDATA (cascade)
- DEPLOYMENT_VARIABLE_SUBS (manual, JDBC query)
- WEBHOOK_RESPONSE (manual, Hibernate)
|
int |
deleteForEnvironment(long environmentId)
Delete batch of Deployment Results and related records.
|
void |
removeLogs(long deploymentResultId,
long maxAllowedLogSize)
Affected filesystem:
- $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
|
int |
unlinkFromVersion(long deploymentVersionId)
Unlink Deployment Results from Deployment Version.
|
int |
unlinkFromVersionForProject(long deploymentProjectId)
Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
|
public DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDao deploymentResultDao, EnvironmentDao environmentDao, VariableContextBaselineDao variableContextBaselineDao, com.atlassian.event.api.EventPublisher eventPublisher)
public void delete(long deploymentResultId)
Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
delete in interface DeploymentResultDeletionServicedeploymentResultId - id of Deployment Result to deletepublic int deleteForEnvironment(long environmentId)
DeploymentResultDeletionServicedeleteForEnvironment in interface DeploymentResultDeletionServiceenvironmentId - id of Environment which DeploymentResults are to be deletedpublic int unlinkFromVersion(long deploymentVersionId)
DeploymentResultDeletionServiceunlinkFromVersion in interface DeploymentResultDeletionServicedeploymentVersionId - id of DeploymentVersion which DeploymentRecords should be unlinked frompublic int unlinkFromVersionForProject(long deploymentProjectId)
DeploymentResultDeletionServiceunlinkFromVersionForProject in interface DeploymentResultDeletionServicedeploymentProjectId - id of DeploymentProjectpublic void removeLogs(long deploymentResultId,
long maxAllowedLogSize)
removeLogs in interface DeploymentResultDeletionServicedeploymentResultId - id of Deployment ResultmaxAllowedLogSize - delete only files longer than allowed size, when -1 then delete all filesCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.