provo modifiche x deploy su nexus

This commit is contained in:
Samuele Locatelli
2021-06-17 16:56:16 +02:00
parent d4c65cc8eb
commit f81adbee29
5 changed files with 32 additions and 32 deletions
+28 -28
View File
@@ -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:
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>MP.Stats</RootNamespace>
<UserSecretsId>826e877c-ba70-4253-84cb-d0b1cafd4440</UserSecretsId>
<Version>1.0.2106.1518</Version>
<Version>1.0.2106.1716</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo statistiche MAPO</i>
<h4>Versione: 1.0.2106.1518</h4>
<h4>Versione: 1.0.2106.1716</h4>
<br />
Note di rilascio:
<ul>
+1 -1
View File
@@ -1 +1 @@
1.0.2106.1518
1.0.2106.1716
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2106.1518</version>
<version>1.0.2106.1716</version>
<url>http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/MP.Stats.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>