File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ nssm set buildkite-agent AppEnvironmentExtra :HOME=C:\buildkite-agent
170
170
If ($lastexitcode -ne 0 ) { Exit $lastexitcode }
171
171
nssm set buildkite- agent AppExit Default Restart
172
172
If ($lastexitcode -ne 0 ) { Exit $lastexitcode }
173
- nssm set buildkite- agent AppRestartDelay 5000
173
+ nssm set buildkite- agent AppRestartDelay 10000
174
174
If ($lastexitcode -ne 0 ) { Exit $lastexitcode }
175
175
nssm set buildkite- agent AppEvents Exit / Post " powershell C:\buildkite-agent\bin\terminate-instance.ps1"
176
176
If ($lastexitcode -ne 0 ) { Exit $lastexitcode }
Original file line number Diff line number Diff line change 1
- Write-Output " terminate-instance: waiting for 10 seconds to allow agent logs to drain to Cloudwatch..."
2
- Start-Sleep - Seconds 10
3
-
4
1
$InstanceId = (Invoke-WebRequest - UseBasicParsing http:// 169.254 .169.254 / latest/ meta- data/ instance- id).content
5
2
$Region = (Invoke-WebRequest - UseBasicParsing http:// 169.254 .169.254 / latest/ meta- data/ placement/ availability- zone).content -replace " .$"
6
3
You can’t perform that action at this time.
0 commit comments