|
|
|
@@ -53,8 +53,8 @@ variables:
|
|
|
|
|
}
|
|
|
|
|
echo $hasSource
|
|
|
|
|
|
|
|
|
|
# helper creazione hash files
|
|
|
|
|
.hashBuild: &hashBuild
|
|
|
|
|
# helper creazione hash files x CORE
|
|
|
|
|
.hashBuildCore: &hashBuildCore
|
|
|
|
|
- |
|
|
|
|
|
$Target = $env:APP_NAME + "\bin\Release\" + $env:APP_NAME + ".zip"
|
|
|
|
|
$MD5 = Get-FileHash $Target -Algorithm MD5
|
|
|
|
@@ -67,7 +67,7 @@ variables:
|
|
|
|
|
echo "Created HASH files for $Target"
|
|
|
|
|
|
|
|
|
|
# helper creazione hash files x IIS
|
|
|
|
|
.hashBuildIIS: &hashBuildIIS
|
|
|
|
|
.hashBuild: &hashBuild
|
|
|
|
|
- |
|
|
|
|
|
$Target = $env:APP_NAME + "\bin\publish\" + $env:APP_NAME + ".zip"
|
|
|
|
|
$MD5 = Get-FileHash $Target -Algorithm MD5
|
|
|
|
@@ -79,8 +79,8 @@ variables:
|
|
|
|
|
|
|
|
|
|
echo "Created HASH files for $Target"
|
|
|
|
|
|
|
|
|
|
# helper x send su NEXUS
|
|
|
|
|
.nexusUpload: &nexusUpload
|
|
|
|
|
# helper x send su NEXUS CORE
|
|
|
|
|
.nexusUploadCore: &nexusUploadCore
|
|
|
|
|
- |
|
|
|
|
|
Set-Alias mCurl C:\Windows\system32\curl.exe
|
|
|
|
|
$currentDate = get-date -format yyMM;
|
|
|
|
@@ -101,8 +101,8 @@ variables:
|
|
|
|
|
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File http://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/SLS/$FileName
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# helper x send su NEXUS x pack IIS
|
|
|
|
|
.nexusUploadIIS: &nexusUploadIIS
|
|
|
|
|
# helper x send su NEXUS x pack
|
|
|
|
|
.nexusUploadIIS: &nexusUpload
|
|
|
|
|
- |
|
|
|
|
|
Set-Alias mCurl C:\Windows\system32\curl.exe
|
|
|
|
|
$currentDate = get-date -format yyMM;
|
|
|
|
@@ -177,6 +177,25 @@ staging:
|
|
|
|
|
- dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj
|
|
|
|
|
- dotnet publish -p:PublishProfile=W2019-IIS-DEVProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj
|
|
|
|
|
|
|
|
|
|
# staging:
|
|
|
|
|
# stage: installerCore
|
|
|
|
|
# only:
|
|
|
|
|
# - develop
|
|
|
|
|
# - master
|
|
|
|
|
# needs: ["build"]
|
|
|
|
|
# before_script:
|
|
|
|
|
# # - *nuget-fix
|
|
|
|
|
# # - dotnet restore
|
|
|
|
|
# # - '& "$env:NUGET_PATH" restore LPA.sln' # path alla solution corrente
|
|
|
|
|
# # - *version-fix
|
|
|
|
|
# - *cleanup-zip
|
|
|
|
|
# script:
|
|
|
|
|
# - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj
|
|
|
|
|
# # deploy su nexus...
|
|
|
|
|
# - *zipper
|
|
|
|
|
# - *hashBuildCore
|
|
|
|
|
# - *nexusUploadCore
|
|
|
|
|
|
|
|
|
|
staging:
|
|
|
|
|
stage: installer
|
|
|
|
|
only:
|
|
|
|
@@ -186,31 +205,12 @@ staging:
|
|
|
|
|
before_script:
|
|
|
|
|
# - *nuget-fix
|
|
|
|
|
# - dotnet restore
|
|
|
|
|
# - '& "$env:NUGET_PATH" restore LPA.sln' # path alla solution corrente
|
|
|
|
|
# - *version-fix
|
|
|
|
|
# - *cleanup-zip
|
|
|
|
|
script:
|
|
|
|
|
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj
|
|
|
|
|
# deploy su nexus...
|
|
|
|
|
# - *zipper
|
|
|
|
|
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj -p:output "publish/net5.0"
|
|
|
|
|
# qui il deploy su nexus...
|
|
|
|
|
- *hashBuild
|
|
|
|
|
- *nexusUpload
|
|
|
|
|
|
|
|
|
|
staging:
|
|
|
|
|
stage: installerIIS
|
|
|
|
|
only:
|
|
|
|
|
- develop
|
|
|
|
|
- master
|
|
|
|
|
needs: ["build"]
|
|
|
|
|
before_script:
|
|
|
|
|
# - *nuget-fix
|
|
|
|
|
# - dotnet restore
|
|
|
|
|
script:
|
|
|
|
|
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj
|
|
|
|
|
# qui il deploy su nexus...
|
|
|
|
|
- *hashBuildIIS
|
|
|
|
|
- *nexusUploadIIS
|
|
|
|
|
|
|
|
|
|
release:
|
|
|
|
|
stage: release
|
|
|
|
|
only:
|
|
|
|
|