Search code examples
artifactorybintray

How to choose target package when promoting from OSS Jfrog to bintray?


I'm using Travis(https://travis-ci.org/Orange-OpenSource/elpaaso-dbaas-wsdl) to build my maven project. I'm able to deploy artifacts and buildInfo to OSS JFrog and to promote snapshot to bintray. But my artifact is pushed into the wrong package.

Expected to be here: bintray.com/elpaaso/maven/elpaaso-dbaas-wsdl/view

But it's here : bintray.com/elpaaso/maven/elpaaso-plugins-management/1.63.12/view#files

I'm using curl to promote to bintray

curl --silent -X POST -u user:password http ://oss.jfrog.org/api/plugins/build/promote/snapshotsToBintray/elpaaso-dbaas-wsdl/12

How to choose target package when promoting from OSS Jfrog to bintray ?


Solution

  • As described in the user guide, the REST API call includes build name and build number as a part of the URI (not repo name and id as in your example).

    Bintray details (the repo and the package) are associated with maven groupId that you provided during the request for inclusion of the package to jcenter.