From 5fa7273f4a3e73c6727f8646f01ea51277d2cead Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 2 Apr 2022 11:38:01 +0200 Subject: [PATCH] test altra sintassi --- .gitlab-ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1234c8..2bcf818 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,21 +4,21 @@ variables: # helper x fix pacchetti nuget da repo locale nexus.steamware.net .nuget-fix: &nuget-fix - - | - $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 http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`"" - } else { - C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`"" - } - echo $hasSource -# $hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus Proxy`"" /C -# if ($hasSource -eq 0) { -# C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus Proxy`"" -Source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -# } else { -# C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus Proxy`"" -Source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -# } -# 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 http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`"" +# } else { +# C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`"" +# } +# 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-proxy-v3/index.json + } else { + C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json + } + echo $hasSource # .nuget-fix: &nuget-fix