Wednesday, March 28, 2018

Nexus repository administration automation

On the whole, it doesn't seem Sonatype is taking it very seriously. As usual, documentation is scattered everywhere, some automation tools exist but who knows if they are even supported. I think most users simply do everything manually in the Nexus web console :o((((

http://localhost:8081/swagger-ui was working in 3.5 , now in 3.9 you must enter http://localhost:8081/swagger-ui/#/ (see https://issues.sonatype.org/browse/NEXUS-13948 )

If you want to automate the creation of repositories, swagger exposes you only "list repos" http://localhost:8081/swagger-ui/#!/repositories/getRepositories

Interesting articles :

https://dzone.com/articles/automated-setup-of-a-repository-manager

https://help.sonatype.com/repomanager3/rest-and-integration-api

Generic nexus-cli to manage Nexus in Groovy scripts https://github.com/RiotGamesMinions/nexus_cli

Interesting nexus-cli to manage Docker images in Nexus https://github.com/mlabouardy/nexus-cli



No comments: