Some builds created through the API can not be promoted
I want to create a build which includes a number of artifacts that have been deployed separately. I can not get it to work.
To try to understand the issue I've made a small test case but it behaves very strangely it seems to me. It tries to do the following using curl calls:
Delete the test repository
Create the test repository
Delete the build, if it remains from a previous run
Create the build, containing a test artifact
Promote the build to the test repository
When creating the build I use a json file which is a stripped down version of the json file Maven left when I created the test artifact.
Now, the strange part I don't understand: the promotion step (5) fails if the build is numbered 2. It works if it is numbered 1. Actually creating the build works in both cases, it is the promotion that differs. The error message is
I've looked at the builds and the repositories via the web interface to Artifactory, but I don't see any explanation of what goes wrong. I do see that my test repository gets populated when promoting build 1, but not when promoting build 2.
The curl command used to create the build looks like this