Skip to content

Commit

Permalink
Transfer the lastExitCode to Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz authored Oct 10, 2024
1 parent 32473cf commit cb9e728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab/container_build/docker_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
-v \\.\pipe\docker_engine:\\.\pipe\docker_engine 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/windows_${Env:VARIANT}_x64${Env:DATADOG_AGENT_WINBUILDIMAGES_SUFFIX}:${Env:DATADOG_AGENT_WINBUILDIMAGES}
powershell
-C C:\mnt\tools\ci\docker-login.ps1
- If ($lastExitCode -eq "42") { exit "$lastExitCode" }
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
- powershell -Command "$(Get-Location)\tools\ci\retry.ps1 docker build --no-cache --build-arg GENERAL_ARTIFACTS_CACHE_BUCKET_URL=${GENERAL_ARTIFACTS_CACHE_BUCKET_URL} ${BUILD_ARG} --pull --file ${BUILD_CONTEXT}/windows/amd64/Dockerfile --tag ${TARGET_TAG} ${BUILD_CONTEXT}"
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
Expand Down

0 comments on commit cb9e728

Please sign in to comment.