My team is running two Nexus 3 instances. One that is connected to a network that has public internet access. The other does not have direct access to the network with public internet access or the Nexus instance running there. The only connection between these two networks is effectively an FTP. My plan was to try and run a cron job on the system running Nexus on the public internet instance to find all assets added since the last run, FTP the files up, have a staggered cron job that would look for new files in the FTP and then import them in to the "closed" Nexus server.
Is this something I could do with the Groovy script to at least get a list of new assets and then dump that list of direct URLs out so that I could download them? So far for node packages, I manually copy the node_modules folder for each project after doing a fresh npm install to the FTP, unpack that folder on the closed side, and then I have written a script that walks all of the packages we have for each of our projects and does an npm publish to the closed Nexus repo. The end result is that the user running the script appears as the publisher, which we really don't care about, but are all available on the closed nexus instance.
I am open to any suggestions.
Thanks,
Patrick