install StackDriver on build machines (#905)

Requested by Security
This commit is contained in:
Gary Verhaegen 2019-05-04 23:55:52 +01:00 committed by mergify[bot]
parent 3d8acde916
commit e95575b033
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@ apt-get install -qy \
git \
netcat
curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh | bash
## Install the VSTS agent
groupadd --gid 3000 vsts
useradd \

View File

@ -74,6 +74,12 @@ Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name
# Disable UAC
New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -PropertyType DWord -Value 0 -Force
# Redirect logs to SumoLogic
cd $env:UserProfile;
Invoke-WebRequest https://dl.google.com/cloudagents/windows/StackdriverLogging-v1-9.exe -OutFile StackdriverLogging-v1-9.exe;
.\StackdriverLogging-v1-9.exe /S /D="C:\Stackdriver\Logging\"
# Install chocolatey
iex (New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')