Update .gitlab-ci.yml
This commit is contained in:
+3
-3
@@ -31,11 +31,11 @@ build_job:
|
||||
stage: build
|
||||
script:
|
||||
- |
|
||||
$hasSource = '& '"$env:NUGET_PATH" sources list | find "`"Steamware Nexus`"" /C'
|
||||
$hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C
|
||||
if ($hasSource eq 0) {
|
||||
$env:NUGET_PATH sources Add -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""
|
||||
C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""
|
||||
} else {
|
||||
$env:NUGET_PATH sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""
|
||||
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""
|
||||
}
|
||||
echo $hasSource
|
||||
'& "$env:NUGET_PATH" restore'
|
||||
|
||||
Reference in New Issue
Block a user