nexus3-oss icon indicating copy to clipboard operation
nexus3-oss copied to clipboard

Add support for specifying the NuGet version on NuGet Proxy repos

Open MikeCantCode opened this issue 2 years ago • 0 comments

Example config:

nexus_repos_nuget_proxy:
  - name: chocolatey-proxy
    blob_store: s3-blobstore
    remote_url: https://community.chocolatey.org/api/v2/
    nuget_version: v2

Update to create_repos_from_list.groovy

// Configs for nuget proxy repos
        if (currentRepo.type == 'proxy' && currentRepo.format == 'nuget') {
            configuration.attributes['nugetProxy'] = [
                    nugetVersion: currentRepo.nuget_version.toUpperCase()
            ]
        }

MikeCantCode avatar Jun 30 '22 20:06 MikeCantCode