diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42cb439..e0d0630 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,18 +6,18 @@ variables: .nuget-fix: &nuget-fix - | dotnet nuget list source - $hasSource = dotnet nuget list source | find "`"Steamware Nexus Proxy`"" /C - if ($hasSource -eq 1) { + $hasSource = [String]::IsNullOrWhiteSpace(dotnet nuget list source | Select-String -Pattern "Steamware Nexus Proxy") + if (!$hasSource) { dotnet nuget remove source "`"Steamware Nexus Proxy`"" } - $hasSource = dotnet nuget list source | find "`"Steamware Nexus`"" /C - if ($hasSource -eq 1) { - dotnet nuget remove source "`"Steamware Nexus`"" - } - $hasSource = dotnet nuget list source | find nexus-proxy-v3 /C - if ($hasSource -eq 1) { - dotnet nuget remove source nexus-proxy-v3 - } +# $hasSource = dotnet nuget list source | find "`"Steamware Nexus`"" /C +# if ($hasSource -eq 1) { +# dotnet nuget remove source "`"Steamware Nexus`"" +# } +# $hasSource = dotnet nuget list source | find nexus-proxy-v3 /C +# if ($hasSource -eq 1) { +# dotnet nuget remove source nexus-proxy-v3 +# } # 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