Test sintassi e verifica variabili

This commit is contained in:
gitlab
2021-03-26 09:57:54 +00:00
parent b394aa7395
commit 01ea7dfed7
+3 -5
View File
@@ -13,14 +13,12 @@ build_job:
stage: build
script:
- |-
if [[ "$env:hasSource" == "0" ]]
{
echo "$env:hasSource"
if [ "$env:hasSource" == "0" ]; then
'& "$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`""'
}
fi
- '& "$env:NUGET_PATH" restore LPA.sln'
- '& "\$env:MSBUILD_PATH" LPA/LPA.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/'