blob: b5c67624ee5daeda60bb1fdf65f646f4d641958d [file] [log] [blame]
------
Purge Configuration
------
~~ Licensed to the Apache Software Foundation (ASF) under one
~~ or more contributor license agreements. See the NOTICE file
~~ distributed with this work for additional information
~~ regarding copyright ownership. The ASF licenses this file
~~ to you under the Apache License, Version 2.0 (the
~~ "License"); you may not use this file except in compliance
~~ with the License. You may obtain a copy of the License at
~~
~~ http://www.apache.org/licenses/LICENSE-2.0
~~
~~ Unless required by applicable law or agreed to in writing,
~~ software distributed under the License is distributed on an
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~~ KIND, either express or implied. See the License for the
~~ specific language governing permissions and limitations
~~ under the License.
Purge Configuration
Click the <<Purge Configurations>> link under the <<Administration>> section.
[../images/purgeconfigurations.png] Purge Configurations
You will see all repository purge configurations and all directory purge configurations.
*Note:* If you have distributed builds enabled, then repository purging is not currently available on build agents.
See {{{http://jira.codehaus.org/browse/CONTINUUM-2697} CONTINUUM-2697}} for information.
[../images/purgeconfigurations-view.png]
Here you can add/edit/delete the purge configuration.
You can also purge the repository or directory by clicking the corresponding purge icon of the purge configuration.
[../images/purgenow.gif] purge now icon
* Adding / Editing Repository Purge Configuration
Specify the repository to purge.
[../images/repositorypurgeconfiguration-add.png]
* Adding / Editing Directory Purge Configuration
There are two types of directory purge configuration:
* releases - this will purge the working copies associated with releases.
* buildOutput - this will purge the build output of each project.
[../images/directorypurgeconfiguration-add.png]
* Purging Repository
* Delete all - will delete the entire contents of the repository
* Days Old - will delete the artifact if it's older than the number of days old but still satisfies the number of retention count.
Example:
Days_Old = 30 days
Retention_Count = 2
If I have 5 artifacts that are older than 30 days, only 3 of them will be deleted because I have to retain any 2 artifacts (Retention count).
* Retention Count - the number of artifacts to retain; all in excess will be deleted
* Delete Released Snapshots - will delete all released snapshots
* Purging Directory
* Delete all
** Releases Directory - will delete all releases-* directories
** Build Output Directory - will delete all build output of each project
* Days Old - will delete the directory if it's older than the number of days old
* Retention Count - number of directories to retain
* Steps in purging:
* Perform Delete All purging if it is checked.
* If delete all is not checked, then is days old has a value greater than 0? If it has then perform days old purging.
* If days old is 0 then perform retention count purging.
* Delete released snapshots purging will always be performed if it is checked, unless the Delete All is also checked or it's a directory purging.