I'm trying to set up an automated snapshot and release chain for an open source Java library.
This is the intended setup:
- Travis CI checks out the Github project
- Travis CI runs the Gradle build
- The Gradle build uses the artifactory plugin to publish a snapshot on oss.jfrog.org
- Travis CI calls the artifactory REST API to promote the snapshot from step 3 to be released to bintray
Everything including step 3 works. When trying to promote the snapshot as described here, however, I always get the following response from the oss.jfrog.org artifactory server:
Request has been canceled: Can't correlate an artifact diffparser-1.4-SNAPSHOT-javadoc.jar to the build being promoted. Check that the artifact was created by the build you are trying to promote.
However, my build produces the javadoc and sources jar correctly, and they have been successfully published (see here). So I don't understand the error.
Does anyone have a clue as to what I might be missing?