forked from SonarSource/sonarlint-visualstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-build.cmd
16 lines (16 loc) · 853 Bytes
/
ci-build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
setlocal ENABLEDELAYEDEXPANSION
IF NOT "%NODE_LABELS%"=="%NODE_LABELS:vs2015=%" (
PowerShell -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -Command ".\build\ci-build.ps1 -vsTargetVersion VS2015"
echo From Cmd.exe: ci-build.ps1 exited with exit code !errorlevel!
exit !errorlevel!
) ELSE IF NOT "%NODE_LABELS%"=="%NODE_LABELS:vs2017=%" (
PowerShell -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -Command ".\build\ci-build.ps1 -vsTargetVersion VS2017"
echo From Cmd.exe: ci-build.ps1 exited with exit code !errorlevel!
PowerShell -NonInteractive -NoProfile -ExecutionPolicy Unrestricted -Command ".\build\ci-build.ps1 -vsTargetVersion VS2019"
echo From Cmd.exe: ci-build.ps1 exited with exit code !errorlevel!
exit !errorlevel!
) ELSE (
echo ERROR: NODE_LABELS contains neither vs2015 nor vs2017
exit 1
)