When you deploy an artifact to Artifactory over an existing artifact, it does not associate it with the build that the existing artifact has.
For example: If you used the Jenkins Artifactory Plugin to deploy three artifacts:
example.jar
example.pom
example.json
Then it would create a new build, associate these artifacts with that build, and deploy the artifacts to the location and repo you specified.
Let's say this deployed to /libs-release-local/example/1.0/ with buildName "example-build" and buildNumber 51
If you looked at the artifacts, you will see on the build tab that it is associated with the build-info.json.
Now, let's say you deploy example.json using the REST API to the same location:
PUT /libs-release-local/example/1.0/example.json
Now the new artifact is not associated with the build-info.json!
How can I deploy the artifact so that it is associated with an already existing build-info.json? (in this example, the "/example-build/51" build).
Not being able to do this causes all sorts of issues (such as when build_promotion is done, it promotes only the previously associated artifacts, and not anything deployed later.)