Script updates:
- option not to shut down sccache after 10 minutes - zero sccache stats before running the build - decrease number of jenkins agents
This commit is contained in:
parent
3170572590
commit
e08efbcf2a
4 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,7 @@ c:\credentials\buildkite-env.ps1
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
|
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
|
||||||
|
|
||||||
$env:SCCACHE_DIR="C:\ws\sccache"
|
$env:SCCACHE_DIR="C:\ws\sccache"
|
||||||
|
$env:SCCACHE_IDLE_TIMEOUT="0"
|
||||||
Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR
|
Remove-Item -Recurse -Force -ErrorAction Ignore $env:SCCACHE_DIR
|
||||||
sccache --start-server
|
sccache --start-server
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ metadata:
|
||||||
name: agent-debian-testing-ssd
|
name: agent-debian-testing-ssd
|
||||||
namespace: jenkins
|
namespace: jenkins
|
||||||
spec:
|
spec:
|
||||||
replicas: 4
|
replicas: 2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -42,7 +42,7 @@ if __name__ == '__main__':
|
||||||
'label': ':windows: build and test windows',
|
'label': ':windows: build and test windows',
|
||||||
'key': 'windows',
|
'key': 'windows',
|
||||||
'commands': [
|
'commands': [
|
||||||
'sccache --show-stats',
|
'sccache --zero-stats',
|
||||||
'set SRC=%BUILDKITE_BUILD_PATH%/llvm-premerge-checks',
|
'set SRC=%BUILDKITE_BUILD_PATH%/llvm-premerge-checks',
|
||||||
'rm -rf %SRC%',
|
'rm -rf %SRC%',
|
||||||
'git clone --depth 1 --branch %scripts_branch% https://github.com/google/llvm-premerge-checks.git %SRC%',
|
'git clone --depth 1 --branch %scripts_branch% https://github.com/google/llvm-premerge-checks.git %SRC%',
|
||||||
|
|
|
@ -37,7 +37,7 @@ if __name__ == '__main__':
|
||||||
'label': ':windows: build and test windows',
|
'label': ':windows: build and test windows',
|
||||||
'key': 'windows',
|
'key': 'windows',
|
||||||
'commands': [
|
'commands': [
|
||||||
'sccache --show-stats',
|
'sccache --zero-stats',
|
||||||
'set SRC=%BUILDKITE_BUILD_PATH%/llvm-premerge-checks',
|
'set SRC=%BUILDKITE_BUILD_PATH%/llvm-premerge-checks',
|
||||||
'rm -rf %SRC%',
|
'rm -rf %SRC%',
|
||||||
'git clone --depth 1 --branch %scripts_branch% https://github.com/google/llvm-premerge-checks.git %SRC%',
|
'git clone --depth 1 --branch %scripts_branch% https://github.com/google/llvm-premerge-checks.git %SRC%',
|
||||||
|
|
Loading…
Reference in a new issue