-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathentrypoint.bat
More file actions
54 lines (39 loc) · 1.55 KB
/
Copy pathentrypoint.bat
File metadata and controls
54 lines (39 loc) · 1.55 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@echo off
@echo =======================================================
@echo ____ __ ____
@echo / __ \____ _/ /_____ _/ __ \____ ____ _
@echo / / / / __ `/ __/ __ `/ / / / __ \/ __ `/
@echo / /_/ / /_/ / /_/ /_/ / /_/ / /_/ / /_/ /
@echo /_____/\__,_/\__/\__,_/_____/\____/\__, /
@echo /____/
@echo =======================================================
@echo.
@echo Agent Windows Build Docker Container
@echo AWS_NETWORKING is %AWS_NETWORKING%
if defined AWS_NETWORKING (
@echo Detected AWS container, setting up networking
powershell -C "c:\aws_networking.ps1"
)
if not exist c:\mnt\ goto nomntdir
@echo PARAMS %*
call "%VSTUDIO_ROOT%\vc\auxiliary\build\vcvars64.bat"
SET VSToolsPath=%VSTUDIO_ROOT%\MSBuild\Microsoft\VisualStudio\v17.0
cd c:\mnt\
mklink /d dd-trace-dotnet C:\mnt
mklink /d _build C:\_build
:: Check if Nuke arguments were provided, if not, fail
set "nuke_args=%*"
if "%nuke_args%"=="" (
echo ERROR: No nuke arguments provided!
exit /b 1
)
:: the CI Identities client will write the credentials to the path in the environment variable AWS_SHARED_CREDENTIALS_FILE,
:: and if the variable is not set, it will write to %USERPROFILE%\.aws\credentials
c:\devtools\ci-identities-gitlab-job-client.exe assume-role
dotnet run --project tracer/build/_build/_build.csproj -- %nuke_args% --Artifacts "build-out\%CI_JOB_ID%"
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
goto :EOF
:nomntdir
@echo directory not mounted, parameters incorrect
exit /b 1
goto :EOF