added access to result storage
This commit is contained in:
parent
f1c253a5be
commit
250e527cf1
3 changed files with 9 additions and 2 deletions
|
@ -13,6 +13,9 @@ RUN powershell -NoProfile -InputFormat None -Command `
|
|||
mkdir c:\jenkins ; `
|
||||
Invoke-WebRequest -Uri %SWARM_PLUGIN_URL% -OutFile %SWARM_PLUGIN_JAR%
|
||||
|
||||
# network storage for build results
|
||||
VOLUME C:\results
|
||||
|
||||
# start swarm plugin
|
||||
COPY start_agent.bat c:\jenkins
|
||||
CMD c:\jenkins\start_agent.bat
|
|
@ -29,7 +29,7 @@ If ($LastExitCode -ne 0) {
|
|||
}
|
||||
|
||||
# mount a persistent workspace for experiments
|
||||
docker run -it -v D:\:C:\ws $IMAGE_NAME $CMD
|
||||
docker run -it -v D:\:C:\ws -v E:\results:C:\results $IMAGE_NAME $CMD
|
||||
If ($LastExitCode -ne 0) {
|
||||
exit
|
||||
}
|
|
@ -20,6 +20,10 @@ Initialize-Disk -Number $diskid
|
|||
New-Partition -DiskNumber $diskid -UseMaximumSize -AssignDriveLetter
|
||||
Format-Volume -DriveLetter D
|
||||
|
||||
Write-Host "Mounting result storage..."
|
||||
Install-WindowsFeature NFS-Client
|
||||
net use E: \\results.local\exports
|
||||
|
||||
Write-Host "Authenticating with gcloud..."
|
||||
# TODO: make this quiet and non-interactive
|
||||
# TODO: check if this works if it's already installed
|
||||
|
@ -28,4 +32,4 @@ docker-credential-gcr configure-docker
|
|||
|
||||
Write-Host "Launching docker container, this might take a while..."
|
||||
docker pull gcr.io/llvm-premerge-checks/agent-windows-jenkins:latest
|
||||
docker run -it -v D:\:C:\ws gcr.io/llvm-premerge-checks/agent-windows-jenkins:latest
|
||||
docker run -it -v D:\:C:\ws -v E:\results:C:\results gcr.io/llvm-premerge-checks/agent-windows-jenkins:latest
|
Loading…
Reference in a new issue