Steve Boardwell demonstrates how to create custom repositories in your Jenkins X managed Nexus server, and what is possible with the Nexus scripting API.
Nexus Repository Manager starting with version 3+ provides a Provisioning REST API which allows the upload of scripts to Nexus and execution of those scripts.