diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52c09fc8..28d7a489 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,11 @@ variables: dotnet nuget add source https://nexus.steamware.net/repository/nuget-proxy-v3/index.json -n nexus-proxy-v3 -u nugetUser -p viaDante16 --store-password-in-clear-text echo "Has Source: $hasSource" +.fixVers: &fixVers + - | + $VersScript = $env:APP_NAME + "\bin\publish\post-build.ps1 -ProjectDir $CI_PROJECT_DIR\$env:APP_NAME -ProjectPath $CI_PROJECT_DIR\$env:APP_NAME\$env:APP_NAME.csproj" + echo "Script called: $VersScript" + # helper creazione hash files x IIS .hashBuild: &hashBuild - | @@ -61,6 +66,7 @@ variables: mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\manifest.xml" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\ChangeLog.html" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html + # Stages previsti stages: - build @@ -463,6 +469,7 @@ LAND:installer: script: - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish # qui il deploy su nexus... + - *fixVers - *hashBuild - *nexusUpload @@ -484,6 +491,7 @@ PROG:installer: script: - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish # qui il deploy su nexus... + - *fixVers - *hashBuild - *nexusUpload @@ -505,6 +513,7 @@ STAT:installer: script: - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish # qui il deploy su nexus... + - *fixVers - *hashBuild - *nexusUpload @@ -526,6 +535,7 @@ MON:installer: script: - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish # qui il deploy su nexus... + - *fixVers - *hashBuild - *nexusUpload @@ -569,6 +579,7 @@ SPEC:installer: script: - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish # qui il deploy su nexus... + - *fixVers - *hashBuild - *nexusUpload