Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.22.1
-
Yes
Description
Playback Actions:
1. Enable Deployment Policy "Read-only" for some maven repository.
2. Associate a cleanup policy with this repository.
3. Run the cleanup task.
Expected Behavior:
The task found and removed the components according to the cleanup policy.
Actual behavior:
Task not found components for remove:
2020-05-26 11:38:22,690+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.task.CleanupTask - Name: Cleanup service 2020-05-26 11:38:22,690+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.task.CleanupTask - Description: Run repository cleanup 2020-05-26 11:38:22,694+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.task.CleanupTask - Starting cleanup 2020-05-26 11:38:22,733+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - Deleting components in repository maven.bss using policy maven.bss-clean 2020-05-26 11:38:22,912+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - 0 components cleaned up for repository maven.bss 2020-05-26 11:38:22,917+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - Deleting components in repository maven.release using policy CleanupReleaseRepos 2020-05-26 11:42:05,929+0300 INFO [quartz-4-thread-19] *SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - 0 components cleaned up for repository maven.release 2020-05-26 11: 42: 05,933 + 0300 ИНФОРМАЦИЯ [quartz-4-thread-19] * SYSTEM org.sonatype.nexus.cleanup.internal.service.CleanupServiceImpl - очищено 0 компонентов во всех репозиториях 2020-05-26 11: 42: 05,933 + 0300 ИНФОРМАЦИЯ [quartz-4-thread-19] * SYSTEM org.sonatype.nexus.cleanup.internal.task.CleanupTask - Очистка завершена 2020-05-26 11: 42: 05,933 + 0300 ИНФОРМАЦИЯ [quartz-4-thread-19] * SYSTEM org.sonatype.nexus.cleanup.internal.task.CleanupTask - Задача выполнена
If you change the deployment policy to any other value and run the cleanup task, the task will find and remove the components, as we expect.
nexus-status
version | 3.22.1-02 |
edition | OSS |
buildRevision | 863ea05ce2444e6d4824dd2a663778dd72575e7c |
buildTimestamp | 2020-04-15-1522-20759 |