-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
38 lines (29 loc) · 2.06 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
image: buildtools2017:1912
variables:
GIT_SUBMODULE_STRATEGY: none
build:
tags:
- windows-docker
script:
# Modify .gitmodules since some submodule repositories have different name locally
- git config --file .gitmodules submodule.Diagramm.url ../Diagramm.git
- git config --file .gitmodules submodule.gps.url ../gps.git
- git config --file .gitmodules submodule.GML-Toolbox.url ../GML-Toolbox-OpenSource.git
- git config --system core.longpaths true
- git submodule sync --recursive
- git submodule update --init --recursive -f
- echo $env:CI_JOB_ID
- msbuild GML-ToolboxApp.sln /property:Configuration=Release /property:Platform=x64 /m /t:Restore /t:Build /v:q
- Compress-Archive -Path .\GML-Toolbox\AppConfig .\x64\Release\AppConfig.zip
- C:\TOOLS\jfrog.exe rt config default --url="$env:ARTIFACTORY_URL" --user="$env:ARTIFACTORY_USER" --apikey="$env:ARTIFACTORY_APIKEY"
- C:\TOOLS\jfrog.exe rt upload "x64\\Release\\*.exe" "geoinfosys/$env:CI_PROJECT_NAME/"
- C:\TOOLS\jfrog.exe rt upload "x64\\Release\\*.dll" "geoinfosys/$env:CI_PROJECT_NAME/"
- C:\TOOLS\jfrog.exe rt upload "x64\\Release\\*.zip" "geoinfosys/$env:CI_PROJECT_NAME/"
- net use "Z:" "\\iai-fileserv1.iai.kit.edu\3w\VR-Web\IFC-Tools\[AutoBuild]\GML-Toolbox-opensource" /user:"$env:SMB_USER" "$env:SMB_PASSWORD"
- xcopy "x64\Release\*.dll" "Z:\" /S /Y
- xcopy "x64\Release\*.exe" "Z:\" /S /Y
- xcopy "GML-Toolbox\AppConfig" "Z:\" /S /Y
- net use "Z:" /delete /yes
- $recipients = @('<[email protected]>', '<[email protected]>', '<[email protected]>', '[email protected]')
- $body = "New versions available:`n" + "\\iai-fileserv1.iai.kit.edu\3w\VR-Web\IFC-Tools\[AutoBuild]\GML-Toolbox-opensource`n" + "`n`nBuild started by " + $env:GITLAB_USER_NAME
- Send-MailMessage -To $recipients -From "GitLAB Build Server<[email protected]>" -Subject "GML-Toolbox build" -SmtpServer "smtp.kit.edu" -Body $body