556 lines
22 KiB
YAML
556 lines
22 KiB
YAML
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\MoonPro\Release'
|
|
DEPLOY_FOLDER: 'c:\Projects\Deploy\MoonPro\Builds'
|
|
VERS_MAIN: '6.14'
|
|
NEW_REL: ''
|
|
NEW_DEB: ''
|
|
NEXUS_PATH: 'MP-XXXX'
|
|
APP_NAME: 'MP.Xxxx'
|
|
APP_CONF: 'Release'
|
|
SOL_NAME: 'MAPO'
|
|
|
|
# helper x fix pacchetti nuget da repo locale nexus.steamware.net
|
|
.nuget-fix: &nuget-fix
|
|
- |
|
|
echo "esecuzione Nuget FIX steps"
|
|
dotnet nuget list source
|
|
$hasSource = dotnet nuget list source | Select-String -Pattern "Steamware Nexus Proxy"
|
|
if (! [String]::IsNullOrWhiteSpace($hasSource)) {
|
|
dotnet nuget remove source "`"Steamware Nexus Proxy`""
|
|
}
|
|
$hasSource = dotnet nuget list source | Select-String -Pattern "Steamware Nexus"
|
|
if (! [String]::IsNullOrWhiteSpace($hasSource)) {
|
|
dotnet nuget remove source "`"Steamware Nexus`""
|
|
}
|
|
$hasSource = dotnet nuget list source | Select-String -Pattern "nexus-proxy-v3"
|
|
if (! [String]::IsNullOrWhiteSpace($hasSource)) {
|
|
dotnet nuget remove source nexus-proxy-v3
|
|
}
|
|
dotnet nuget add source https://nexus.steamware.net/repository/nuget-group-3/index.json -n "Steamware Nexus" -u nugetUser -p $NEXUS_PASSWD --store-password-in-clear-text
|
|
echo "Steamware Nexus Source added"
|
|
|
|
# helper creazione hash files x IIS
|
|
.hashBuild: &hashBuild
|
|
- |
|
|
$Target = $env:APP_NAME + "\Release\" + $env:APP_NAME + ".zip"
|
|
$MD5 = Get-FileHash $Target -Algorithm MD5
|
|
$SHA1 = Get-FileHash $Target -Algorithm SHA1
|
|
New-Item $Target".md5"
|
|
New-Item $Target".sha1"
|
|
$MD5.Hash | Set-Content -Path $Target".md5"
|
|
$SHA1.Hash | Set-Content -Path $Target".sha1"
|
|
|
|
echo "Created HASH files for $Target"
|
|
|
|
# helper x send su NEXUS x pack
|
|
.nexusUpload: &nexusUpload
|
|
- |
|
|
Set-Alias mCurl C:\Windows\system32\curl.exe
|
|
$currentDate = get-date -format yyMM;
|
|
$currentTime = get-date -format ddHH;
|
|
$VersNumb = $env:NEW_REL
|
|
echo "Curr Version: $VersNumb"
|
|
$FileManIn="VersGen\manifest.xml"
|
|
$FileManOut=$env:APP_NAME +"\Resources\manifest.xml"
|
|
$FileCLogIn="VersGen\ChangeLog.html"
|
|
$FileCLogOut=$env:APP_NAME +"\Resources\ChangeLog.html"
|
|
echo "Manifest path: $FileManOut"
|
|
echo "ChangeLog path: $FileCLogOut"
|
|
if($CI_COMMIT_BRANCH -eq "master")
|
|
{
|
|
$version = "stable"
|
|
}
|
|
else
|
|
{
|
|
$version = "unstable"
|
|
}
|
|
$manData = Get-Content $FileManIn
|
|
$manData = $manData -replace "1.0.0.0", $VersNumb
|
|
$manData = $manData -replace "{{DIRNAME}}", $env:NEXUS_PATH
|
|
$manData = $manData -replace "{{BRANCHNAME}}", "$version/LAST"
|
|
$manData = $manData -replace "{{PACKNAME}}", $env:APP_NAME
|
|
Set-Content -Path $FileManOut -Value $manData
|
|
$clogData = Get-Content $FileCLogIn
|
|
$clogData = $clogData -replace "{{CURRENT-REL}}", $VersNumb
|
|
Set-Content -Path $FileCLogOut -Value $clogData
|
|
$File2Send = Get-ChildItem($env:APP_NAME + "\Release\*")
|
|
ForEach ($File in $File2Send) {
|
|
$FileName = Split-Path $File -leaf
|
|
echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/$FileName"
|
|
mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/$FileName
|
|
echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/ARCHIVE/$VersNumb/$FileName"
|
|
mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/ARCHIVE/$VersNumb/$FileName
|
|
}
|
|
echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileManOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml"
|
|
mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileManOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml
|
|
echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html"
|
|
mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html
|
|
|
|
# helper x fix version number
|
|
.version-fix: &version-fix
|
|
- |
|
|
$env:NEW_REL = $env:VERS_MAIN+"."+(get-date -format yyMM)+"."+(get-date -format dHH)
|
|
echo "Set vers: $env:NEW_REL"
|
|
$anno = (get-date -format yyyy)
|
|
$adesso = (get-date -format dd:HH:mm)
|
|
$contenuto = Get-Content -path 'VersGen\MoonPro.cs' -Raw
|
|
$newContenuto = $contenuto -replace '0.0.0.0', $env:NEW_REL
|
|
$newContenuto | Set-Content -Path 'VersGen\MoonPro.cs'
|
|
echo "Modifica dati file nuspec Release"
|
|
$currRelease = $env:NEW_REL
|
|
$lastDot = $currRelease.LastIndexOf(".");
|
|
$currDebug = $currRelease.Substring(0, $lastDot)+"-beta"+$currRelease.Substring($lastDot);
|
|
$env:NEW_DEB = $currDebug
|
|
$find = "<version>(.|\n)*?</version>";
|
|
$fileNameRel = "MapoSDK.Release.nuspec";
|
|
$replRel = "<version>" + $currRelease + "</version>";
|
|
$replCopy = "Copyright EgalWare, ©2007-" + $anno
|
|
$nuspDataRel = Get-Content $fileNameRel;
|
|
$nuspDataRelUpd = $nuspDataRel -replace $find, $replRel;
|
|
$nuspDataRelUpd = $nuspDataRelUpd -replace "#copyright#", $replCopy;
|
|
$nuspDataRelUpd = $nuspDataRelUpd -replace "#releaseNotes#", "Build $adesso";
|
|
Set-Content -Path $fileNameRel -Value $nuspDataRelUpd;
|
|
echo "Modifica dati file nuspec Debug"
|
|
$fileNameDeb = "MapoSDK.Debug.nuspec";
|
|
$replDeb = "<version>" + $currDebug + "</version>";
|
|
$nuspDataDeb = Get-Content $fileNameDeb;
|
|
$nuspDataDebUpd = $nuspDataDeb -replace $find, $replDeb;
|
|
$nuspDataDebUpd = $nuspDataDebUpd -replace "#copyright#", $replCopy;
|
|
$nuspDataDebUpd = $nuspDataDebUpd -replace "#releaseNotes#", "Build $adesso";
|
|
Set-Content -Path $fileNameDeb -Value $nuspDataDebUpd;
|
|
echo "replace completati"
|
|
|
|
stages:
|
|
- build
|
|
- sdk
|
|
- staging
|
|
- deploy
|
|
- installer
|
|
|
|
SDK-stable:
|
|
stage: sdk
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "SDK"'
|
|
variables:
|
|
APP_NAME: MapoSDK
|
|
NEXUS_PATH: MapoSDK
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m'
|
|
- '& Remove-Item *.nupkg'
|
|
- '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"'
|
|
- '& $env:NUGET_PATH setapikey $NUGET_API_KEY -source https://nexus.steamware.net/repository/nuget-hosted'
|
|
- '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_REL.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted'
|
|
|
|
SDK-unstable:
|
|
stage: sdk
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MapoSDK
|
|
NEXUS_PATH: MapoSDK
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Debug /verbosity:minimal /m'
|
|
- '& Remove-Item *.nupkg'
|
|
- '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"'
|
|
- '& $env:NUGET_PATH setapikey $NUGET_API_KEY -source https://nexus.steamware.net/repository/nuget-hosted'
|
|
- '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_DEB.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted'
|
|
|
|
ADM:build:
|
|
stage: build
|
|
variables:
|
|
CURR_PRJ: "MP-ADM"
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" MP-ADM/MP-ADM.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
IO:build:
|
|
stage: build
|
|
variables:
|
|
CURR_PRJ: "MP-IO"
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
SITE:build:
|
|
stage: build
|
|
variables:
|
|
CURR_PRJ: "MP-SITE"
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" MP-SITE/MP-SITE.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
# MON:build:
|
|
# stage: build
|
|
# variables:
|
|
# CURR_PRJ: "MP-MON"
|
|
# tags:
|
|
# - win
|
|
# rules:
|
|
# - if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
# before_script:
|
|
# - *nuget-fix
|
|
# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
# - *version-fix
|
|
# script:
|
|
# - '& "$env:MSBUILD_PATH" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
TAB:build:
|
|
stage: build
|
|
variables:
|
|
CURR_PRJ: "MP-TAB"
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" MP-TAB/MP-TAB.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
MAG:build:
|
|
stage: build
|
|
variables:
|
|
CURR_PRJ: "MP-MAG"
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "SDK"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" MP-MAG/MP-MAG.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
|
|
ADM:staging:
|
|
stage: staging
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-ADM/MP-ADM.csproj'
|
|
needs: ["ADM:build"]
|
|
|
|
IO:staging:
|
|
stage: staging
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-IO/MP-IO.csproj'
|
|
needs: ["IO:build"]
|
|
|
|
SITE:staging:
|
|
stage: staging
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj'
|
|
needs: ["SITE:build"]
|
|
|
|
# MON:staging:
|
|
# stage: staging
|
|
# tags:
|
|
# - win
|
|
# rules:
|
|
# - if: '$CI_COMMIT_BRANCH == "develop"'
|
|
# before_script:
|
|
# - *nuget-fix
|
|
# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
# - *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj'
|
|
# needs: ["MON:build"]
|
|
|
|
TAB:staging:
|
|
stage: staging
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-TAB/MP-TAB.csproj'
|
|
needs: ["TAB:build"]
|
|
|
|
MAG:staging:
|
|
stage: staging
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *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=Debug /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MAG/MP-MAG.csproj'
|
|
needs: ["MAG:build"]
|
|
|
|
ADM:deploy:
|
|
stage: deploy
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-ADM/MP-ADM.csproj'
|
|
needs: ["ADM:build"]
|
|
|
|
IO:deploy:
|
|
stage: deploy
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-IO/MP-IO.csproj'
|
|
needs: ["IO:build"]
|
|
|
|
SITE:deploy:
|
|
stage: deploy
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj'
|
|
needs: ["SITE:build"]
|
|
|
|
# MON:deploy:
|
|
# stage: deploy
|
|
# tags:
|
|
# - win
|
|
# rules:
|
|
# - if: '$CI_COMMIT_BRANCH == "master"'
|
|
# before_script:
|
|
# - *nuget-fix
|
|
# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
# - *version-fix
|
|
# script:
|
|
# - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj'
|
|
# needs: ["MON:build"]
|
|
|
|
TAB:deploy:
|
|
stage: deploy
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-TAB/MP-TAB.csproj'
|
|
needs: ["TAB:build"]
|
|
|
|
MAG:deploy:
|
|
stage: deploy
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=$IIS_PWD /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MAG/MP-MAG.csproj'
|
|
needs: ["MAG:build"]
|
|
|
|
ADM:install:
|
|
stage: installer
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
when: manual
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MP-ADM
|
|
NEXUS_PATH: MP-ADM
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
needs: ["ADM:build"]
|
|
|
|
IO:install:
|
|
stage: installer
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
when: manual
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MP-IO
|
|
NEXUS_PATH: MP-IO
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/IO" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
needs: ["IO:build"]
|
|
|
|
SITE:install:
|
|
stage: installer
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
when: manual
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MP-SITE
|
|
NEXUS_PATH: MP-SITE
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/SITE" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
needs: ["SITE:build"]
|
|
|
|
# MON:install:
|
|
# stage: installer
|
|
# tags:
|
|
# - win
|
|
# rules:
|
|
# - if: '$CI_COMMIT_BRANCH == "master"'
|
|
# when: manual
|
|
# - if: '$CI_COMMIT_BRANCH == "develop"'
|
|
# variables:
|
|
# APP_NAME: MP-MON
|
|
# NEXUS_PATH: MP-MON
|
|
# before_script:
|
|
# - *nuget-fix
|
|
# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
# - *version-fix
|
|
# script:
|
|
# - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MON" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
# - *hashBuild
|
|
# - *nexusUpload
|
|
# needs: ["MON:build"]
|
|
|
|
TAB:install:
|
|
stage: installer
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
when: manual
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MP-TAB
|
|
NEXUS_PATH: MP-TAB
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/TAB" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
needs: ["TAB:build"]
|
|
|
|
MAG:install:
|
|
stage: installer
|
|
tags:
|
|
- win
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
when: manual
|
|
- if: '$CI_COMMIT_BRANCH == "develop"'
|
|
variables:
|
|
APP_NAME: MP-MAG
|
|
NEXUS_PATH: MP-MAG
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MAG" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj'
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
needs: ["MAG:build"]
|