From b81ccf4fe2b5f7eadaff142a5accaa3d68a46f34 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Sun, 8 Apr 2018 18:57:06 +0100 Subject: [PATCH] on ubuntu use the working 4.5.1 version of nuget --- provision/use-nuget-repository.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/provision/use-nuget-repository.sh b/provision/use-nuget-repository.sh index 32c3d87..25334d5 100644 --- a/provision/use-nuget-repository.sh +++ b/provision/use-nuget-repository.sh @@ -15,13 +15,17 @@ if ! which mono; then sudo apt-get install -y mono-complete fi if [[ ! -f /tmp/nuget.exe ]]; then - wget -qO/tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe + # NB ubuntu 16.04 mono cannot run nuget.exe versions above 4.5.1. + # see https://github.com/NuGet/Home/issues/6790 + wget -qO/tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/v4.5.1/nuget.exe fi function nuget { mono /tmp/nuget.exe $* } +nuget | grep -i version: + nuget_source_url=https://$nexus_domain/repository/nuget-group/ nuget_source_push_url=https://$nexus_domain/repository/nuget-hosted/ nuget_source_push_api_key=$(nexus-groovy get-jenkins-nuget-api-key | jq -r '.result | fromjson | .apiKey')