Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-470

Jenkins Artifactory plugin sends -1 instead of the defined build retention 'Max # of builds to keep'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: None
    • Labels:
      None

      Description

      When using the build retention feature in Maven jobs or Freestyle job with 'Maven3-Artifactory Integration' , Artifactory plugins send -1 instead of the defined build retention 'Max # of builds to keep'.

      This can be reproduced with the following scenario:
      1. Create Maven build.
      2. Configure the build retention on the Plugin configuration and in Jenkins build configuration to send '3' as the max builds to keep.
      3. Run the build.
      4. After the build has been successfully deployed, open and review the build info JSON file, you will see something similar to:
      "buildRetention" :

      { "count" : -1, "deleteBuildArtifacts" : true, "buildNumbersNotToBeDiscarded" : [ ] }

      However, it works fine with 'Generic-Artifactory Integration'
      Tested with Jenkins 1.532

        Attachments

          Activity

            People

            • Assignee:
              drorb Dror Bereznitsky
              Reporter:
              shayb Shay Bagants
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: