Created
January 5, 2019 13:35
-
-
Save mlabouardy/4f7925ff7906e90fc25aff6078b8d204 to your computer and use it in GitHub Desktop.
Create Docker hosted repository on Nexus with Groovy script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.sonatype.nexus.blobstore.api.BlobStoreManager; | |
import org.sonatype.nexus.repository.storage.WritePolicy; | |
repository.createDockerHosted('mlabouardy', 5000, 443, BlobStoreManager.DEFAULT_BLOBSTORE_NAME, true, true, WritePolicy.ALLOW) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment