diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9ed7b1d..87550cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -88,6 +88,18 @@ stages: - deploy - pack +ADAPTER:build: + stage: build + tags: + - win + variables: + APP_NAME: MP.MONO.ADAPTER.OPC + before_script: + - *nuget-fix + - dotnet restore MP.MONO.ALL.sln + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj + DECODER:build: stage: build tags: @@ -151,7 +163,23 @@ UI:deploy: # IIS DEV - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj - + +ADAPTER:packDebug: + stage: pack + tags: + - win + only: + - develop + variables: + APP_NAME: MP.MONO.ADAPTER.OPC + APP_CONF: Debug + needs: ["ADAPTER:build"] + script: + - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=$env:APP_CONF $env:APP_NAME/$env:APP_NAME.csproj + - *artifactZipper + - *hashBuild + - *nexusUpload + DECODER:packDebug: stage: pack tags: @@ -201,6 +229,22 @@ UI:packDebug: - *nexusUpload +ADAPTER:packRelease: + stage: pack + tags: + - win + only: + - main + variables: + APP_NAME: MP.MONO.ADAPTER.OPC + APP_CONF: Release + needs: ["ADAPTER:build"] + script: + - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=$env:APP_CONF $env:APP_NAME/$env:APP_NAME.csproj + - *artifactZipper + - *hashBuild + - *nexusUpload + DECODER:packRelease: stage: pack tags: