1
0
Fork 0

Deployment changes

do not restart win docker as it makes it impossible to stop agent from
buildkite UI for maintenance
This commit is contained in:
Mikhail Goncharov 2020-06-17 09:46:42 +02:00
parent af7bd86875
commit ffaba986c1
3 changed files with 4 additions and 5 deletions

View file

@ -116,8 +116,8 @@ To spawn a new windows agent:
1. Login to the new machine via RDP (you will need a RDP client, e.g. Chrome app).
1. In the RDP session: run these commands in the CMD window under Administrator to bootstrap the Windows machine:
```powershell
Invoke-WebRequest -uri 'https://raw.githubusercontent.com/google/llvm-premerge-checks/master/scripts/windows_agent_bootstrap.ps1' -OutFile windows_agent_bootstrap.ps1
./windows_agent_bootstrap.ps1
Invoke-WebRequest -uri 'https://raw.githubusercontent.com/google/llvm-premerge-checks/master/scripts/windows_agent_bootstrap.ps1' -OutFile c:\windows_agent_bootstrap.ps1
c:/windows_agent_bootstrap.ps1
```
Ignore the pop-up to format the new disk and wait for the machine to reboot.
@ -126,6 +126,7 @@ To spawn a new windows agent:
1. Create `c:\credentials` folder with file `buildkite-env.ps1`:
```powershell
$Env:buildkiteAgentToken = "secret-token"
$Env:BUILDKITE_AGENT_NAME = "buildkite-windows-#"
$Env:BUILDKITE_AGENT_TAGS = "queue=windows"
$Env:CONDUIT_TOKEN = "conduit-api-token"
```

View file

@ -18,7 +18,7 @@ metadata:
name: premerge-debian
namespace: buildkite
spec:
replicas: 4
replicas: 5
template:
metadata:
labels:

View file

@ -38,14 +38,12 @@ if (${testing}) {
-v ${workdir}:C:\ws `
-v C:\credentials:C:\credentials `
-e BUILDKITE_BUILD_PATH=C:\ws `
--restart unless-stopped `
${IMAGE} powershell
} else {
docker run -d `
-v ${workdir}:C:\ws `
-v C:\credentials:C:\credentials `
-e BUILDKITE_BUILD_PATH=C:\ws `
--restart unless-stopped `
--name ${NAME} `
${IMAGE}
}