From f6b010d47b04cfbd77eb23fc38de01a9bd61abe2 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 3 Feb 2023 16:03:48 +0100 Subject: [PATCH] ancora update yaml x nuget... --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe8fa15a..02c09ff3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,13 +25,12 @@ variables: if (! [String]::IsNullOrWhiteSpace($hasSource)) { dotnet nuget remove source 'Microsoft Visual Studio Offline Packages' } - $hasSource = dotnet nuget list source | Select-String -Pattern "nuget.org" - if (! [String]::IsNullOrWhiteSpace($hasSource)) { - dotnet nuget remove source nuget.org - } + echo "Situazione sorgenti post remove:" + dotnet nuget list source dotnet nuget add source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -n nexus-proxy-v3 -u nugetUser -p $NEXUS_PASSWD --store-password-in-clear-text + dotnet nuget add source https://nexus.steamware.net/repository/nuget-hosted/ -n nexus-proxy-v3 -u nugetUser -p $NEXUS_PASSWD --store-password-in-clear-text $hasSource = dotnet nuget list source - echo "Situazione sorgenti nuget:" + echo "Situazione sorgenti FINALE:" dotnet nuget list source # helper creazione hash files x IIS