LEFT | RIGHT |
1 # Avoid re-running | 1 # Avoid re-running |
2 if (Test-Path -Path $data_directory) { | 2 if (Test-Path -Path $data_directory) { |
3 Write-Host 'Tools already present, exiting startup script.' | 3 Write-Host 'Tools already present, exiting startup script.' |
4 exit | 4 exit |
5 } | 5 } |
6 | 6 |
7 ## Set up default URLs and Paths | 7 ## Set up default URLs and Paths |
8 $install_log_path = "$($data_directory)\provision.log" | 8 $install_log_path = "$($data_directory)\provision.log" |
9 $jenkins_slave_path = "$($jenkins_home_directory)\slave.jar" | 9 $jenkins_slave_path = "$($jenkins_home_directory)\slave.jar" |
10 $vc_for_python_url = 'https://download.microsoft.com/download/7/9/6/796EF2E4-801
B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi' | 10 $vc_for_python_url = 'https://download.microsoft.com/download/7/9/6/796EF2E4-801
B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi' |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 Choco install jre8 -y | Tee-Object -Append -FilePath $install_log_path # Needed
for jenkins client | 61 Choco install jre8 -y | Tee-Object -Append -FilePath $install_log_path # Needed
for jenkins client |
62 Choco install git -y --params '"/GitAndUnixToolsOnPath"' | Out-Null #Tee-Object
-Append -FilePath $install_log_path | 62 Choco install git -y --params '"/GitAndUnixToolsOnPath"' | Out-Null #Tee-Object
-Append -FilePath $install_log_path |
63 Choco install python2 -y | Tee-Object -Append -FilePath $install_log_path | 63 Choco install python2 -y | Tee-Object -Append -FilePath $install_log_path |
64 # Pip package is broken as per 2017-07-14 | 64 # Pip package is broken as per 2017-07-14 |
65 Choco install pip -y --allow-empty-checksums | Tee-Object -Append -FilePath $ins
tall_log_path | 65 Choco install pip -y --allow-empty-checksums | Tee-Object -Append -FilePath $ins
tall_log_path |
66 Choco install vcredist2010 -y | Tee-Object -Append -FilePath $install_log_path | 66 Choco install vcredist2010 -y | Tee-Object -Append -FilePath $install_log_path |
67 | 67 |
68 c:\python27\scripts\pip.exe install wmi | Tee-Object -Append -FilePath $install_
log_path | 68 c:\python27\scripts\pip.exe install wmi | Tee-Object -Append -FilePath $install_
log_path |
69 c:\python27\scripts\pip.exe install pypiwin32 | Tee-Object -Append -FilePath $in
stall_log_path | 69 c:\python27\scripts\pip.exe install pypiwin32 | Tee-Object -Append -FilePath $in
stall_log_path |
70 c:\python27\scripts\pip.exe install requests | Tee-Object -Append -FilePath $ins
tall_log_path | 70 c:\python27\scripts\pip.exe install requests | Tee-Object -Append -FilePath $ins
tall_log_path |
| 71 c:\python27\scripts\pip.exe install pyinstaller | Tee-Object -Append -FilePath $
install_log_path |
71 | 72 |
72 echo 'Downloading Jenkins client' | Tee-Object -Append -FilePath $install_log_pa
th | 73 echo 'Downloading Jenkins client' | Tee-Object -Append -FilePath $install_log_pa
th |
73 mkdir $jenkins_home_directory | 74 mkdir $jenkins_home_directory |
74 (New-Object System.Net.WebClient).DownloadFile($jenkins_slave_url, $jenkins_slav
e_path) | 75 (New-Object System.Net.WebClient).DownloadFile($jenkins_slave_url, $jenkins_slav
e_path) |
75 | 76 |
76 # Disable stupid UAC | 77 # Disable stupid UAC |
77 New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
\System" -Name EnableInstallerDetection -Value 0 -Force | 78 New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
\System" -Name EnableInstallerDetection -Value 0 -Force |
78 # This needs a reboot to be applied | 79 # This needs a reboot to be applied |
79 | 80 |
80 Restart-Computer | 81 Restart-Computer |
LEFT | RIGHT |