disable strictContentTypeValidation in the adhoc-package repository as it can host any type of artifact
This commit is contained in:
parent
053adc30a7
commit
880735083a
|
|
@ -27,9 +27,10 @@ capabilityRegistry.all.findAll {it.context().type().toString().startsWith("Outre
|
||||||
//])
|
//])
|
||||||
|
|
||||||
// create a raw repository backed by the default blob store.
|
// create a raw repository backed by the default blob store.
|
||||||
|
// NB this repository can host any type of artifact, so we disable strictContentTypeValidation.
|
||||||
// see https://github.com/sonatype/nexus-book-examples/blob/nexus-3.x/scripting/complex-script/rawRepositories.groovy
|
// see https://github.com/sonatype/nexus-book-examples/blob/nexus-3.x/scripting/complex-script/rawRepositories.groovy
|
||||||
// see https://help.sonatype.com/display/NXRM3/Raw+Repositories+and+Maven+Sites#RawRepositoriesandMavenSites-UploadingFilestoHostedRawRepositories
|
// see https://help.sonatype.com/display/NXRM3/Raw+Repositories+and+Maven+Sites#RawRepositoriesandMavenSites-UploadingFilestoHostedRawRepositories
|
||||||
repository.createRawHosted("adhoc-package", "default", true, WritePolicy.ALLOW_ONCE)
|
repository.createRawHosted("adhoc-package", "default", false, WritePolicy.ALLOW_ONCE)
|
||||||
|
|
||||||
|
|
||||||
// create a npm repository backed by the default blob store.
|
// create a npm repository backed by the default blob store.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue