Commit 6add31d4 authored by Kim Meiser's avatar Kim Meiser 💬
Browse files

Packen des Deployment-Artefakts JeoParody. Verwende den kurzen git SHA im Release-Artefakt.

parent de06feb9
Pipeline #815 failed with stages
in 16 seconds
......@@ -3,8 +3,7 @@ variables:
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe'
XUNIT_PATH: packages\xunit.runner.console\2.4.1\tools\net472
UNITTEST_FOLDER: '.\tests\JeoParody.Test\bin\Release\net48'
EXECUTABLE: 'src\Jeoparody\bin\Release\Jeoparody.exe.*'
stages:
- build
- test
......@@ -19,12 +18,15 @@ build_job:
script:
- '& "$env:NUGET_PATH" restore -PackagesDirectory packages'
- '& "$env:MSBUILD_PATH" /p:Configuration=Release /clp:ErrorsOnly'
- '& robocopy .\Categories\fertig JeoParody *.*'
- '& robocopy .\src\Jeoparody\bin\Release\ JeoParody Jeoparody.*'
- '& robocopy .\src\Jeoparody\bin\Release\Media JeoParody\Media *.*'
artifacts:
expire_in: 2 days
paths:
- '$env:UNITTEST_FOLDER\*.*'
- '.\$env:XUNIT_PATH\*.*'
- '$env:EXECUTABLE'
- 'JeoParody\*.*'
test_job:
stage: test
......@@ -46,7 +48,7 @@ deploy_job:
script:
- 'echo "deploying..."'
artifacts:
name: 'JeoParody-$CI_COMMIT_SHA'
name: 'JeoParody-$CI_COMMIT_SHORT_SHA'
expire_in: 2 days
paths:
- '$env:EXECUTABLE'
\ No newline at end of file
- 'JeoParody\*.*'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment