From adbffb2c416fdc3f92adabac5522d9df354f4cda Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 23 Dec 2024 12:23:06 +0100 Subject: [PATCH] update yaml x step staging --- .gitlab-ci.yml | 304 ++++++++++++++++++++++++------------------------- 1 file changed, 149 insertions(+), 155 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57d3247..dabc263 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -173,9 +173,9 @@ EgwProxy.Ftp:build: APP_NAME: EgwProxy.Ftp rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.Ftp/* - # when: always + changes: + - EgwProxy.Ftp/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/Ftp' changes: - EgwProxy.Ftp/* @@ -194,9 +194,9 @@ EgwProxy.Icoel:build: APP_NAME: EgwProxy.Icoel rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.Icoel/* - # when: always + changes: + - EgwProxy.Icoel/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/Icoel' changes: - EgwProxy.Icoel/* @@ -215,9 +215,9 @@ EgwProxy.MultiCncLib:build: APP_NAME: EgwProxy.MultiCncLib rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.MultiCncLib/* - # when: always + changes: + - EgwProxy.MultiCncLib/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/MultiCncLib' changes: - EgwProxy.MultiCncLib/* @@ -236,9 +236,9 @@ EgwProxy.OsaiCncLib:build: APP_NAME: EgwProxy.OsaiCncLib rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.OsaiCncLib/* - # when: always + changes: + - EgwProxy.OsaiCncLib/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/OsaiCnc' changes: - EgwProxy.OsaiCncLib/* @@ -257,9 +257,9 @@ EgwProxy.SqlDb:build: APP_NAME: EgwProxy.SqlDb rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.SqlDb/* - # when: always + changes: + - EgwProxy.SqlDb/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/SqlDb' changes: - EgwProxy.SqlDb/* @@ -278,9 +278,9 @@ EgwProxy.Gomba:build: APP_NAME: EgwProxy.Gomba rules: - if: $CI_COMMIT_BRANCH == 'develop' - # changes: - # - EgwProxy.Gomba/* - # when: always + changes: + - EgwProxy.Gomba/* + when: always - if: $CI_COMMIT_BRANCH == 'SDK/Gomba' changes: - EgwProxy.Gomba/* @@ -292,148 +292,142 @@ EgwProxy.Gomba:build: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m' -# # -------------------------------- -# # STAGING: (nuget beta) -# # -------------------------------- -# EgwProxy.Ftp:staging: -# stage: staging -# needs: ["EgwProxy.Ftp:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.Ftp -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +# -------------------------------- +# STAGING: (nuget beta) +# -------------------------------- +EgwProxy.Ftp:staging: + stage: staging + needs: ["EgwProxy.Ftp:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.Ftp + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -# EgwProxy.Icoel:staging: -# stage: staging -# needs: ["EgwProxy.Icoel:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.Icoel -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Icoel:staging: + stage: staging + needs: ["EgwProxy.Icoel:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.Icoel + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -# EgwProxy.MultiCncLib:staging: -# stage: staging -# needs: ["EgwProxy.MultiCncLib:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.MultiCncLib -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# # - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.MultiCncLib:staging: + stage: staging + needs: ["EgwProxy.MultiCncLib:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.MultiCncLib + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' +# - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -# EgwProxy.OsaiCncLib:staging: -# stage: staging -# needs: ["EgwProxy.OsaiCncLib:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.OsaiCncLib -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# # - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.OsaiCncLib:staging: + stage: staging + needs: ["EgwProxy.OsaiCncLib:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.OsaiCncLib + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' +# - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -# EgwProxy.SqlDb:staging: -# stage: staging -# needs: ["EgwProxy.SqlDb:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.SqlDb -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.SqlDb:staging: + stage: staging + needs: ["EgwProxy.SqlDb:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.SqlDb + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -# EgwProxy.Gomba:staging: -# stage: staging -# needs: ["EgwProxy.Gomba:build"] -# tags: -# - win -# variables: -# CONFIG: Debug -# APP_NAME: EgwProxy.Gomba -# only: -# refs: -# - develop -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' -# - *version-fix -# - *nuspec-fix -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Gomba:staging: + stage: staging + needs: ["EgwProxy.Gomba:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.Gomba + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' # # --------------------------------