Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-24037

Deployment policy blocks cleanup task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.22.1
    • Fix Version/s: None
    • Component/s: Cleanup, Documentation
    • Labels:
    • Release Note:
      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            rusguliev Ruslan Guliev
            Last Updated By:
            Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title