Affects Version/s: 2.2.1
Fix Version/s: 2.2.2
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:
However, it works fine with 'Generic-Artifactory Integration'
Tested with Jenkins 1.532