-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gitlab] Use new public Windows builders (#5479)
Uses public Windows builders for test and build jobs. For now, the old test jobs + x64 builds are kept to compare the new jobs and the old ones. The artifacts made with the new builders will be used when publishing.
- Loading branch information
Showing
6 changed files
with
177 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
if not exist c:\mnt\ goto nomntdir | ||
|
||
@echo c:\mnt found, continuing | ||
@echo PARAMS %* | ||
@echo RELEASE_VERSION %RELEASE_VERSION% | ||
@echo MAJOR_VERSION %MAJOR_VERSION% | ||
@echo PY_RUNTIMES %PY_RUNTIMES% | ||
|
||
if NOT DEFINED RELEASE_VERSION set RELEASE_VERSION=%~1 | ||
if NOT DEFINED MAJOR_VERSION set MAJOR_VERSION=%~2 | ||
if NOT DEFINED PY_RUNTIMES set PY_RUNTIMES=%~3 | ||
|
||
REM don't use `OUTDIR` as an environment variable. It will confuse the VC build | ||
set PKG_OUTDIR=c:\mnt\build-out\%CI_JOB_ID% | ||
|
||
set OMNIBUS_BUILD=agent.omnibus-build | ||
set OMNIBUS_ARGS=--python-runtimes "%PY_RUNTIMES%" | ||
|
||
if "%OMNIBUS_TARGET%" == "iot" set OMNIBUS_ARGS=--iot | ||
if "%OMNIBUS_TARGET%" == "dogstatsd" set OMNIBUS_BUILD=dogstatsd.omnibus-build && set OMNIBUS_ARGS= | ||
if "%OMNIBUS_TARGET%" == "agent_binaries" set OMNIBUS_ARGS=%OMNIBUS_ARGS% --agent-binaries | ||
|
||
mkdir \dev\go\src\github.com\DataDog\datadog-agent | ||
if not exist \dev\go\src\github.com\DataDog\datadog-agent exit /b 1 | ||
cd \dev\go\src\github.com\DataDog\datadog-agent || exit /b 2 | ||
xcopy /e/s/h/q c:\mnt\*.* || exit /b 3 | ||
inv -e deps --verbose --dep-vendor-only --no-checks || exit /b 4 | ||
|
||
@echo "inv -e %OMNIBUS_BUILD% %OMNIBUS_ARGS% --skip-deps --major-version %MAJOR_VERSION% --release-version %RELEASE_VERSION%" | ||
inv -e %OMNIBUS_BUILD% %OMNIBUS_ARGS% --skip-deps --major-version %MAJOR_VERSION% --release-version %RELEASE_VERSION% || exit /b 5 | ||
|
||
dir \omnibus\pkg | ||
|
||
dir \omnibus-ruby\pkg\ | ||
|
||
if not exist %PKG_OUTDIR% mkdir %PKG_OUTDIR% || exit /b 6 | ||
if exist \omnibus-ruby\pkg\*.msi copy \omnibus-ruby\pkg\*.msi %PKG_OUTDIR% || exit /b 7 | ||
if exist \omnibus-ruby\pkg\*.zip copy \omnibus-ruby\pkg\*.zip %PKG_OUTDIR% || exit /b 8 | ||
|
||
goto :EOF | ||
|
||
:nomntdir | ||
@echo directory not mounted, parameters incorrect | ||
exit /b 1 | ||
goto :EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters