shortened path names
This commit is contained in:
parent
6c89adda38
commit
736af1d894
3 changed files with 5 additions and 5 deletions
|
@ -8,8 +8,8 @@ FROM gcr.io/llvm-premerge-checks/agent-windows
|
||||||
# Supply your agent token via the arguement "-token <mytoken" when building the image
|
# Supply your agent token via the arguement "-token <mytoken" when building the image
|
||||||
ARG token
|
ARG token
|
||||||
ENV buildkiteAgentToken="${token}"
|
ENV buildkiteAgentToken="${token}"
|
||||||
ENV BUILDKITE_BUILD_PATH=C:\workspace\buildkite
|
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
|
||||||
ENV BUILDKITE_AGENT_NAME=amd64-windows-visualstudio2017
|
ENV BUILDKITE_AGENT_NAME=win-vs17
|
||||||
|
|
||||||
RUN powershell -NoProfile -InputFormat None -Command `
|
RUN powershell -NoProfile -InputFormat None -Command `
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force ; `
|
Set-ExecutionPolicy Bypass -Scope Process -Force ; `
|
||||||
|
|
|
@ -32,8 +32,8 @@ ENV PYTHONIOENCODING=UTF-8
|
||||||
RUN powershell.exe -Command $path = $env:path + ';c:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin'; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path
|
RUN powershell.exe -Command $path = $env:path + ';c:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin'; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path
|
||||||
|
|
||||||
# use this folder to store the worksapce'
|
# use this folder to store the worksapce'
|
||||||
VOLUME C:\workspace
|
VOLUME C:\ws
|
||||||
WORKDIR C:\workspace
|
WORKDIR C:\ws
|
||||||
|
|
||||||
# support long file names during git checkout
|
# support long file names during git checkout
|
||||||
RUN git config --system core.longpaths true & `
|
RUN git config --system core.longpaths true & `
|
||||||
|
|
|
@ -29,7 +29,7 @@ If ($LastExitCode -ne 0) {
|
||||||
|
|
||||||
# mount a persistent workspace for experiments
|
# mount a persistent workspace for experiments
|
||||||
New-Item -ItemType Directory -Force -Path $Env:USERPROFILE\workspace
|
New-Item -ItemType Directory -Force -Path $Env:USERPROFILE\workspace
|
||||||
docker run -it -v $Env:USERPROFILE\workspace:C:\workspace $IMAGE_NAME
|
docker run -it -v $Env:USERPROFILE\workspace:C:\ws $IMAGE_NAME
|
||||||
If ($LastExitCode -ne 0) {
|
If ($LastExitCode -ne 0) {
|
||||||
exit
|
exit
|
||||||
}
|
}
|
Loading…
Reference in a new issue