jwagenleitner / groovy-wslite

Lightweight SOAP and REST webservice clients for Groovy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q: Howto upload files to Nexus using WSLite?

dhs-rec opened this issue · comments

Unfortunately, all examples in the Nexus 3 documentation are using curl, but I'd need to write a Groovy program to mass-upload files to Nexus using its REST API (for an Artifactory to Nexus migration). However, I have no idea about how to translate those curl commands to Groovy code. Would be glad if someone could point me in the right direction for this example.

Thanks a lot!

Thanks a lot. I've meanwhile found a method by reading the code of the Jenkins Nexus plugin, which uses an undocumented Nexus platform api jar (com.sonatype.nexus:nexus-platform-api) to do Maven 2 uploads.