Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25557

Dont dsicard old artifact from artifactory if DIDNT upload new one

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • artifactory-plugin
    • None
    • Jenkins ver. 1.565.1
      Plugin version 2.2.4

      I have a job that builds RPMs, but only produces a new RPM when a certain update is available, meaning 2/3 times the job runs, it does not produce a new artifact.

      I am settings Jenkins to discard old builds when more than 5 exist.

      The problem I have is this plugin will delete an existing RPM from artifactory if the build succeeds, whether or not a new RPM was uploaded. The effect of this is that if I go several days with any updates (hence new RPMs being produced), this plugin will delete all such RPMs from artifactory.

      It would be nice if this plugin did not simply blindly follow Jenkins cleaning up builds, but actually ensure that if the number of build kept is 5, then it will actually keep this many artifacts in artifactory. Or simply, a setting which says 'if I didnt upload anything new to artifactory, dont delete anything from artifactory'.

          [JENKINS-25557] Dont dsicard old artifact from artifactory if DIDNT upload new one

          There are no comments yet on this issue.

            eyalbe Eyal Ben Moshe
            squiggly Foo Bar
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: