There are two ways to clean out old deployment reports in WCM:
Administrator and Content Managers of the web project have the right to delete the Deployment Reports. Follow these steps:
Using scheduler you can delete the reports older than the given number of days. You can configure this scheduler to run on a periodic basis. Follow the next steps to configure this scheduler.
deployment-attempt-cleaner-context.xml.sample
to deployment-attempt-cleaner-context.xml
specified at the location<alfresco_home>/tomcat/shared/classes/alfresco/extension
.<bean id="avmDeploymentAttemptCleaner" class="org.alfresco.repo.avm.AVMDeploymentAttemptCleaner"> <!-- number of days to keep deployment attempts --> <property name="maxAge"> <value>1</value> </property> <property name="nodeService"> <ref bean="NodeService" /> </property> <property name="transactionService"> <ref bean="TransactionService" /> </property> <property name="searchService"> <ref bean="SearchService" /> </property> <property name="importerBootstrap"> <ref bean="spacesBootstrap" /> </property> </bean> <bean id="avmDeploymentAttemptCleanup" class="org.alfresco.util.CronTriggerBean"> <property name="jobDetail"> <bean id="avmDeploymentAttemptCleanerDetail" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass"> <value> org.alfresco.repo.avm.AVMDeploymentAttemptCleanerJob </value> </property> <property name="jobDataAsMap"> <map> <entry key="deploymentAttemptCleaner"> <ref bean="avmDeploymentAttemptCleaner" /> </entry> </map> </property> </bean> </property> <property name="scheduler"> <ref bean="schedulerFactory" /> </property> <!-- trigger at 5:00am each day --> <property name="cronExpression"> <value>0 0 5 * * ? </value> </property> </bean>
This will purge all deployment attempt nodes older than one day at 5 a.m. every morning.
Go to the Staging Sandbox of the web project. Click on the View Deployments link.
You will find the history of all of the deployment reports on that page as shown next: