Cleaning up deployment history

There are two ways to clean out old deployment reports in WCM:

  • Using Alfresco Explorer
  • Using scheduler

Using Alfresco Explorer

Administrator and Content Managers of the web project have the right to delete the Deployment Reports. Follow these steps:

  1. Go to the Staging Sandbox area of the web project.
  2. Click on the Actions menu.
  3. Click on the Delete All Deploy Reports submenu.
    Using Alfresco Explorer
  4. It will ask for confirmation; click on Yes to delete the reports.

Using scheduler

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.

  1. Rename the file deployment-attempt-cleaner-context.xml.sample to deployment-attempt-cleaner-context.xml specified at the location<alfresco_home>/tomcat/shared/classes/alfresco/extension.
  2. Configure the following highlighted changes:
    <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.

Deployment report 1 day before

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:

Deployment report 1 day before

Deployment report 1 day after

Since we have configured to clean up reports that are one day older, on the next day, we can see only those reports which are deployed today. All other reports, which are shown in the previous screenshot, have been purged.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset