From 99e697369547fcc448e16d5d4b8b6d45b7739592 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 14 Apr 2022 12:52:11 +0200 Subject: [PATCH] aggiunto nuget v3 --- .gitlab-ci.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 269be9be..8fd47651 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,29 +6,14 @@ variables: # helper x fix pacchetti nuget da repo locale nexus.steamware.net .nuget-fix: &nuget-fix - | - dotnet nuget list source - $hasSource = dotnet nuget list source | Select-String -Pattern "Steamware Nexus Proxy" - if (! [String]::IsNullOrWhiteSpace($hasSource)) { - dotnet nuget remove source "`"Steamware Nexus Proxy`"" + $hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C + if ($hasSource -eq 0) { + C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/#repository/nuget-group-v3/index.json -username "`"nugetUser`"" -password "`"viaDante16`" " + } else { + C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/#repository/nuget-group-v3/index.json -username "`"nugetUser`"" -password "`"viaDante16`" " } - $hasSource = dotnet nuget list source | Select-String -Pattern "Steamware Nexus" - if (! [String]::IsNullOrWhiteSpace($hasSource)) { - dotnet nuget remove source "`"Steamware Nexus`"" - } - $hasSource = dotnet nuget list source | Select-String -Pattern "nexus-proxy-v3" - if (! [String]::IsNullOrWhiteSpace($hasSource)) { - dotnet nuget remove source nexus-proxy-v3 - } - dotnet nuget add source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -n nexus-proxy-v3 -u nugetUser -p viaDante16 --valid-authentication-types basic echo $hasSource -# $hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C -# if ($hasSource -eq 0) { -# C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/#repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`" -" -# } else { -# C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/#repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`"" -# } - # helper creazione hash files x IIS .hashBuild: &hashBuild - |