update fix version number
This commit is contained in:
+17
-9
@@ -37,12 +37,11 @@ variables:
|
||||
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""
|
||||
}
|
||||
echo $hasSource
|
||||
# path alla solution corrente
|
||||
- '& "$env:NUGET_PATH" restore GPW.sln'
|
||||
|
||||
# .versNumbFix: &versNumbFix
|
||||
# - 'echo "Set vers: $env:VERS_NUMBER"'
|
||||
# - '& ((Get-Content -path VersGen\\GPW.cs -Raw) -replace '0.0.0.0','$env:VERS_NUMBER') | Set-Content -Path VersGen\\GPW.cs?'
|
||||
# helper x fix version number
|
||||
.version-fix: &version-fix
|
||||
- 'echo "Set vers: $env:VERS_NUMBER"'
|
||||
- '& ((Get-Content -path VersGen\\GPW.cs -Raw) -replace '0.0.0.0','$env:VERS_NUMBER') | Set-Content -Path VersGen\\GPW.cs?'
|
||||
|
||||
stages:
|
||||
- build
|
||||
@@ -51,7 +50,10 @@ stages:
|
||||
admin:build:
|
||||
stage: build
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- *nuget-fix
|
||||
# path alla solution corrente
|
||||
- '& "$env:NUGET_PATH" restore GPW.sln'
|
||||
- *version-fix
|
||||
script:
|
||||
- '& "$env:MSBUILD_PATH" GPW_Admin/GPW_Admin.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /m'
|
||||
# artifacts:
|
||||
@@ -66,7 +68,9 @@ admin:build:
|
||||
bcode:build:
|
||||
stage: build
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- *nuget-fix
|
||||
- '& "$env:NUGET_PATH" restore GPW.sln'
|
||||
- *version-fix
|
||||
script:
|
||||
- '& "$env:MSBUILD_PATH" GPW_Barcode/GPW_Barcode.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /m'
|
||||
|
||||
@@ -101,7 +105,9 @@ admin:deploy:
|
||||
# only:
|
||||
# - tags # the build process will only be started by git tag commits
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- *nuget-fix
|
||||
- '& "$env:NUGET_PATH" restore GPW.sln'
|
||||
- *version-fix
|
||||
script:
|
||||
- '& "$env:MSBUILD_PATH" /p:m=4 /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'
|
||||
needs: ["admin:build"]
|
||||
@@ -112,7 +118,9 @@ admin:deploy:
|
||||
bcode:deploy:
|
||||
stage: deploy
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- *nuget-fix
|
||||
- '& "$env:NUGET_PATH" restore GPW.sln'
|
||||
- *version-fix
|
||||
script:
|
||||
- '& "$env:MSBUILD_PATH" /p:m=4 /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'
|
||||
needs: ["bcode:build"]
|
||||
|
||||
Reference in New Issue
Block a user