File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
roles/package-upgrade/files Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ and change:
11
11
to
12
12
` %admin ALL = (ALL) NOPASSWD:ALL `
13
13
14
+ also add this line to allow the jenkins user to change xcode version
15
+ ` iojs ALL=(ALL) NOPASSWD: /usr/bin/xcode-select `
16
+
14
17
2 . Allow ssh access
15
18
16
19
``` bash
Original file line number Diff line number Diff line change 6
6
osx_vers=$( sw_vers -productVersion | awk -F " ." ' {print $2}' )
7
7
cmd_line_tools_temp_file=" /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"
8
8
9
- # Installing the latest Xcode command line tools on 10.9.x or higher
9
+ # Installing xcode for 10.14+
10
+
11
+ if [[ " $osx_vers " -ge 14 ]]; then
12
+ wget -P /tmp/ foo.bar/Xcode10.xip # Placeholder URL
13
+ xip --expand /tmp/Xcode10.xip
14
+ mv /tmp/Xcode.app /Applications/Xcode10.app
15
+ fi
16
+
17
+ # Installing xcodes for 10.13
18
+
19
+ if [[ " $osx_vers " -ge 13 ]]; then
20
+ wget -P /tmp/ foo.bar/Xcode10.xip # Placeholder URL
21
+ xip --expand /tmp/Xcode10.xip
22
+ mv /tmp/Xcode.app /Applications/Xcode10.app
23
+ # Install second xcode
24
+ wget -P /tmp/ foo.bar/Xcode8.xip # Placeholder URL
25
+ xip --expand /tmp/Xcode8.xip
26
+ mv /tmp/Xcode.app /Applications/Xcode8.app
27
+ fi
28
+
29
+
30
+ # Installing the latest Xcode command line tools on 10.9.x - 10.12.x
10
31
11
32
if [[ " $osx_vers " -ge 9 ]]; then
12
33
touch " $cmd_line_tools_temp_file " ;
You can’t perform that action at this time.
0 commit comments