diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bb23fe2..15e81b2e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -69,88 +69,158 @@ stages:
- installer
- release
-build:
+LAND:build:
+ stage: build
+ tags:
+ - win
+ before_script:
+ - *nuget-fix
+ - dotnet restore MP-LAND.sln
+ script:
+ - dotnet build MP.Land/MP.Land.csproj
+
+PROG:build:
+ stage: build
+ tags:
+ - win
+ before_script:
+ - *nuget-fix
+ - dotnet restore MP-PROG.sln
+ script:
+ - dotnet build MP.Prog/MP.Prog.csproj
+
+STAT:build:
stage: build
tags:
- win
before_script:
- *nuget-fix
- dotnet restore MP-STATS.sln
- - dotnet restore MP-PROG.sln
script:
- dotnet build MP.Stats/MP.Stats.csproj
- - dotnet build MP.Prog/MP.Prog.csproj
-test:
+LAND:test:
stage: test
tags:
- win
only:
- develop
- needs: ["build"]
+ needs: ["LAND:build"]
+ script:
+ - dotnet test MP.Land/MP.Land.csproj
+
+PROG:test:
+ stage: test
+ tags:
+ - win
+ only:
+ - develop
+ needs: ["PROG:build"]
+ script:
+ - dotnet test MP.Prog/MP.Prog.csproj
+
+STAT:test:
+ stage: test
+ tags:
+ - win
+ only:
+ - develop
+ needs: ["STAT:build"]
script:
- dotnet test MP.Stats/MP.Stats.csproj
- - dotnet test MP.Prog/MP.Prog.csproj
-IIS01:deploy:
+LAND:IIS01:deploy:
stage: deploy
tags:
- win
only:
- develop
- needs: ["test"]
- # before_script:
- # - *nuget-fix
- # - dotnet restore
+ needs: ["LAND:test"]
+ script:
+ - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Land/MP.Land.csproj
+
+PROG:IIS01:deploy:
+ stage: deploy
+ tags:
+ - win
+ only:
+ - develop
+ needs: ["PROG:test"]
script:
- - dotnet publish -p:PublishProfile=IIS01.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=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Prog/MP.Prog.csproj
-IIS02:deploy:
+STAT:IIS01:deploy:
+ stage: deploy
+ tags:
+ - win
+ only:
+ - develop
+ needs: ["STAT:test"]
+ script:
+ - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj
+
+LAND:IIS02:deploy:
stage: deploy
tags:
- win
only:
- master
- needs: ["build"]
- # before_script:
- # - *nuget-fix
- # - dotnet restore
+ needs: ["LAND:build"]
+ script:
+ - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Land/MP.Land.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.Land/MP.Land.csproj
+
+PROG:IIS02:deploy:
+ stage: deploy
+ tags:
+ - win
+ only:
+ - master
+ needs: ["PROG:build"]
+ script:
+ - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Prog/MP.Prog.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.Prog/MP.Prog.csproj
+
+STAT:IIS02:deploy:
+ stage: deploy
+ tags:
+ - win
+ only:
+ - master
+ needs: ["STAT:build"]
script:
- 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
- - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Prog/MP.Prog.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.Prog/MP.Prog.csproj
-STA:installer:
+LAND:installer:
stage: installer
tags:
- win
only:
- develop
- master
- needs: ["build"]
+ needs: ["LAND:build"]
variables:
- APP_NAME: MP.Stats
- NEXUS_PATH: MP-STATS
+ APP_NAME: MP.Land
+ NEXUS_PATH: MP-LAND
before_script:
# - *nuget-fix
# - dotnet restore
script:
- - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj -o:publish
+ - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Land/MP.Land.csproj -o:publish
# qui il deploy su nexus...
- *hashBuild
- *nexusUpload
-PRG:installer:
+PROG:installer:
stage: installer
tags:
- win
only:
- develop
- master
- needs: ["build"]
+ needs: ["PROG:build"]
variables:
APP_NAME: MP.Prog
NEXUS_PATH: MP-PROG
@@ -163,7 +233,28 @@ PRG:installer:
- *hashBuild
- *nexusUpload
-release:
+STAT:installer:
+ stage: installer
+ tags:
+ - win
+ only:
+ - develop
+ - master
+ needs: ["STAT:build"]
+ variables:
+ APP_NAME: MP.Stats
+ NEXUS_PATH: MP-STATS
+ before_script:
+ # - *nuget-fix
+ # - dotnet restore
+ script:
+ - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.Stats/MP.Stats.csproj -o:publish
+ # qui il deploy su nexus...
+ - *hashBuild
+ - *nexusUpload
+
+
+LAND:release:
stage: release
tags:
- win
@@ -173,12 +264,49 @@ release:
- tags
except:
- branches
- needs: ["build"]
+ needs: ["LAND:build"]
+ artifacts:
+ paths:
+ - publish/
+ script:
+ - dotnet publish -c Release -o ./publish MP.Land/MP.Land.csproj
+
+
+PROG:release:
+ stage: release
+ tags:
+ - win
+ only:
+ #- feature/Deploy_CI_CD
+ # - master
+ - tags
+ except:
+ - branches
+ needs: ["PROG:build"]
artifacts:
paths:
- publish/
script:
- - dotnet publish -c Release -o ./publish MP.Stats/MP.Stats.csproj
- dotnet publish -c Release -o ./publish MP.Prog/MP.Prog.csproj
+STAT:release:
+ stage: release
+ tags:
+ - win
+ only:
+ #- feature/Deploy_CI_CD
+ # - master
+ - tags
+ except:
+ - branches
+ needs: ["STAT:build"]
+ artifacts:
+ paths:
+ - publish/
+ script:
+ - dotnet publish -c Release -o ./publish MP.Land/MP.Land.csproj
+ - dotnet publish -c Release -o ./publish MP.Prog/MP.Prog.csproj
+ - dotnet publish -c Release -o ./publish MP.Stats/MP.Stats.csproj
+
+
diff --git a/MP.Land/Properties/PublishProfiles/FolderProfile.pubxml b/MP.Land/Properties/PublishProfiles/FolderProfile.pubxml
new file mode 100644
index 00000000..cb2062ae
--- /dev/null
+++ b/MP.Land/Properties/PublishProfiles/FolderProfile.pubxml
@@ -0,0 +1,16 @@
+
+
+
+
+ False
+ False
+ True
+ Release
+ Any CPU
+ FileSystem
+ bin\publish\net5.0\
+ FileSystem
+
+
\ No newline at end of file
diff --git a/MP.Land/Properties/PublishProfiles/IIS01.pubxml b/MP.Land/Properties/PublishProfiles/IIS01.pubxml
new file mode 100644
index 00000000..b96ae492
--- /dev/null
+++ b/MP.Land/Properties/PublishProfiles/IIS01.pubxml
@@ -0,0 +1,28 @@
+
+
+
+
+ MSDeploy
+ True
+ Release
+ Any CPU
+
+
+ False
+ d9901b50-e61c-400c-b62c-fa060cf72c29
+ false
+ https://IIS01:8172/MsDeploy.axd
+ Default Web Site/MP/LAND
+
+ False
+ WMSVC
+ True
+ jenkins
+ <_SavePWD>True
+ net5.0
+ True
+
+
\ No newline at end of file
diff --git a/MP.Land/Properties/PublishProfiles/IIS02.pubxml b/MP.Land/Properties/PublishProfiles/IIS02.pubxml
new file mode 100644
index 00000000..fab9f1d8
--- /dev/null
+++ b/MP.Land/Properties/PublishProfiles/IIS02.pubxml
@@ -0,0 +1,27 @@
+
+
+
+
+ MSDeploy
+ True
+ Release
+ Any CPU
+
+
+ False
+ d9901b50-e61c-400c-b62c-fa060cf72c29
+ false
+ https://IIS02:8172/MsDeploy.axd
+ Default Web Site/MP/LAND
+
+ False
+ WMSVC
+ True
+ jenkins
+ <_SavePWD>True
+ net5.0
+
+
\ No newline at end of file
diff --git a/MP.Land/Properties/PublishProfiles/IISProfile.pubxml b/MP.Land/Properties/PublishProfiles/IISProfile.pubxml
new file mode 100644
index 00000000..aad930b6
--- /dev/null
+++ b/MP.Land/Properties/PublishProfiles/IISProfile.pubxml
@@ -0,0 +1,21 @@
+
+
+
+
+ Package
+ Release
+ Any CPU
+
+ True
+ False
+ d9901b50-e61c-400c-b62c-fa060cf72c29
+ bin\publish\MP.Land.zip
+ true
+ Default Web Site/MP/LAND
+ net5.0
+ false
+
+
\ No newline at end of file
diff --git a/MP.Land/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml b/MP.Land/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml
new file mode 100644
index 00000000..18e61f7a
--- /dev/null
+++ b/MP.Land/Properties/PublishProfiles/W2019-IIS-DEVProfile.pubxml
@@ -0,0 +1,27 @@
+
+
+
+
+ MSDeploy
+ True
+ Release
+ Any CPU
+
+
+ False
+ d9901b50-e61c-400c-b62c-fa060cf72c29
+ false
+ https://w2019-iis-dev:8172/MsDeploy.axd
+ Default Web Site/MP/LAND
+
+ False
+ WMSVC
+ True
+ jenkins
+ <_SavePWD>True
+ net5.0
+
+
\ No newline at end of file
diff --git a/MP.Land/Properties/launchSettings.json b/MP.Land/Properties/launchSettings.json
index 924a8e2b..aeaf5b5b 100644
--- a/MP.Land/Properties/launchSettings.json
+++ b/MP.Land/Properties/launchSettings.json
@@ -3,8 +3,8 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
- "applicationUrl": "http://localhost:7312",
- "sslPort": 44309
+ "applicationUrl": "http://localhost:7314",
+ "sslPort": 44311
}
},
"profiles": {