Update .gitlab-ci.yml

This commit is contained in:
gitlab
2021-03-26 12:00:04 +00:00
parent 8140007058
commit 325b961127
+8 -1
View File
@@ -31,7 +31,14 @@ build_job:
stage: build
script:
- echo $env:hasSource
- '& "$env:NUGET_PATH" sources Add -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""'
if ($env:hasSource -eq 0)
{
- '& "$env:NUGET_PATH" 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`""'
}
- '& "$env:NUGET_PATH" restore'
#- '& "$env:NUGET_PATH" restore LPA.sln'
- '& "$env:MSBUILD_PATH" LPA/LPA.csproj /p:DeployOnBuild=true /p:Configuration=Release /p:OutputPath=sourcecode/'