1
0
Fork 0

added access to result storage

This commit is contained in:
Christian Kühnel 2019-12-13 15:08:41 +00:00
parent f1c253a5be
commit 250e527cf1
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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
}

View file

@ -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