fix space syntax

This commit is contained in:
Samuele E. Locatelli
2021-03-26 21:32:23 +01:00
parent 48acd4be39
commit fb45c1964d
+17 -18
View File
@@ -1,17 +1,17 @@
variables:
NUGET_PATH: 'C:\Tools\nuget.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
ASPNET_MERGE_PATH: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'
EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\GPW\Release'
DEPLOY_FOLDER: 'c:\Projects\Deploy\GPW\Builds'
VERS_MAIN: '2.7'
REL_NUM: '4159'
VERS_NUMBER: '$VERS_MAIN.2103.$REL_NUM'
# EXE_RELEASE_FOLDER: 'YourApp\bin\Release'
# MSI_RELEASE_FOLDER: 'Setup\bin\Release'
# TEST_FOLDER: 'Tests\bin\Release'
# DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
# NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe'
NUGET_PATH: 'C:\Tools\nuget.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
ASPNET_MERGE_PATH: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'
EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\GPW\Release'
DEPLOY_FOLDER: 'c:\Projects\Deploy\GPW\Builds'
VERS_MAIN: '2.7'
REL_NUM: '4159'
VERS_NUMBER: '$VERS_MAIN.2103.$REL_NUM'
# EXE_RELEASE_FOLDER: 'YourApp\bin\Release'
# MSI_RELEASE_FOLDER: 'Setup\bin\Release'
# TEST_FOLDER: 'Tests\bin\Release'
# DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
# NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe'
# Da approfondire:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/dotNET.gitlab-ci.yml
@@ -40,8 +40,7 @@ build_job_admin:
- '& "$env:NUGET_PATH" restore GPW.sln'
- '& "$env:MSBUILD_PATH" GPW_Admin/GPW_Admin.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /m'
artifacts:
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
# - '$env:EXE_RELEASE_FOLDER\YourApp.exe' # saving exe to copy to deploy folder
@@ -67,7 +66,7 @@ build_job_bcode:
- '& "$env:NUGET_PATH" restore GPW.sln'
- '& "$env:MSBUILD_PATH" GPW_Barcode/GPW_Barcode.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /m'
artifacts:
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
# - '$env:EXE_RELEASE_FOLDER\YourApp.exe' # saving exe to copy to deploy folder
@@ -106,7 +105,7 @@ deploy_job_admin:
- '& "$env:NUGET_PATH" restore GPW.sln'
- '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ GPW_Admin/GPW_Admin.csproj'
dependencies:
dependencies:
- build_job_admin
# - test_job
@@ -125,7 +124,7 @@ deploy_job_bcode:
- '& "$env:NUGET_PATH" restore GPW.sln'
- '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ GPW_Barcode/GPW_Barcode.csproj'
dependencies:
dependencies:
- build_job_bcode
# - test_job