Update .gitlab-ci.yml

This commit is contained in:
gitlab
2021-03-26 14:23:26 +00:00
parent b8029f6408
commit c1985eebc0
+2 -2
View File
@@ -2,7 +2,7 @@ variables:
NUGET_PATH: 'C:\Tools\nuget.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
#hasSource: '& "$env:NUGET_PATH" sources list | find "`"Steamware Nexus`"" /C'
hasSource: '0'
#hasSource: '0'
stages:
@@ -31,7 +31,7 @@ build_job:
stage: build
script:
- echo $env:hasSource
- hasSource = '& "$env:NUGET_PATH" sources list | find "`"Steamware Nexus`"" /C'
- $hasSource = '& "$env:NUGET_PATH" 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`""'