modify the default nuget-hosted repository instead of re-creating it
This commit is contained in:
parent
0d1355d258
commit
82fe7f3a55
|
|
@ -26,11 +26,10 @@ repository.createNpmProxy("npmjs.org-proxy", "https://registry.npmjs.org", "defa
|
||||||
repository.createNpmGroup("npm-group", ["npm-hosted", "npmjs.org-proxy"], "default")
|
repository.createNpmGroup("npm-group", ["npm-hosted", "npmjs.org-proxy"], "default")
|
||||||
|
|
||||||
|
|
||||||
// re-create the default nuget-hosted repository for not allowing re-deployments.
|
// modify the default nuget-hosted repository for not allowing re-deployments.
|
||||||
repository.repositoryManager.delete("nuget-group")
|
config = repository.repositoryManager.get("nuget-hosted").configuration.copy()
|
||||||
repository.repositoryManager.delete("nuget-hosted")
|
config.attributes.storage.writePolicy = WritePolicy.ALLOW_ONCE
|
||||||
repository.createNugetHosted("nuget-hosted", "default", true, WritePolicy.ALLOW_ONCE)
|
repository.repositoryManager.update(config)
|
||||||
repository.createNugetGroup("nuget-group", ["nuget-hosted", "nuget.org-proxy"], "default")
|
|
||||||
|
|
||||||
|
|
||||||
// create a powershell repository backed by the default blob store.
|
// create a powershell repository backed by the default blob store.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue