cancel
Showing results for 
Search instead for 
Did you mean: 

deployment history and modified files

nicola_raglia
Champ in-the-making
Champ in-the-making
Hello,
i've got a problem on my alfresco. I'd like delete a deployment history and the list of modified files under user's sandbox, because this two lists take an overhead on Alfresco. How can i obtain it?
I found this bean org.alfresco.repo.avm.AVMDeploymentAttemptCleaner, but i don't knwo if it can help me.
I configured it like this:
<?xml version='1.0' encoding='UTF-8'?>
   <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
  
   <!–
    Configuration of a scheduled job that, by default, at 4am removes any deployment attempt nodes
    that are older than 180 days.
    –>
   
    <beans>
      
        <bean id="avmDeploymentAttemptCleaner" class="org.alfresco.repo.avm.AVMDeploymentAttemptCleaner">
            <property name="adminUserName">
                <value>admin</value>
            </property>
            <!– number of days to keep deployment attempts –>
            <property name="maxAge">
                <value>4</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 4:00am each day –>
            <property name="cronExpression">
                <value>0 0 11 * * ?</value>
            </property>
        </bean>
       
    </beans>

to clean the deployment history older of 4 days.
From my log i read it: 1:00:00,072  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Finding old deploymentattempt nodes using query: @wca\:deployattempttime:[0001\-01\-01T00:00:00 TO 2009\-6\-7T00:00:00]
11:00:00,274  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleting 157 old deployment attempts
11:00:00,909  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/79f82401-33fa-48f7-bef6-2d1c1ab923c4
11:00:01,118  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/3b2b7436-af24-4f4b-929d-b42a5742085f
11:00:01,270  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/2b8b838d-876c-424b-81b9-3b248fb8f1e6
11:00:01,442  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/5ad90282-08de-47df-8ec7-00dbdb70cc8f
11:00:01,550  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/eb006f82-7658-4819-b1ad-d1b0e81748a9
11:00:01,692  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/a4b2fd00-e15d-4e2e-b854-047da3a83b40
11:00:01,794  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/5b718830-d036-4b18-89e7-a24c8fe1133e
11:00:01,891  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/80734206-c5d6-4fd5-b704-d8362186f143
11:00:02,057  DEBUG [repo.avm.AVMDeploymentAttemptCleaner] Deleted deployment attempt: workspace://SpacesStore/303a9eeb-94cb-4d9b-ba12-b2164e371c54


IF i see the deployment history i find,hovewer, deployments older of 4 days, if such nothing changed.

Everyone have a suggestion for me?

Thanks.

Nicola.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
http://wiki.alfresco.com/wiki/WCM_Deployment_Features#Removing_Deployment_Reports

You can also delete all deployment reports via the UI.

What's wrong with the list of modified assets in a user's sandbox?    You can't delete that since its the contents of the author's sandbox.

Could you clarify the following statement please.
"IF i see the deployment history i find,hovewer, deployments older of 4 days, if such nothing changed."

nicola_raglia
Champ in-the-making
Champ in-the-making
hello.
The modified files ok: i can delete them from UI, sorry.

The problem is the deployment list. I don't find ,from UI, the action to delete them .
I found the bean AVMDeploymentAttemptCleaner but after configure it  to clean the deployment history , hovewer find that deployment history.

Nicola.