File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,16 @@ cd ~/TeamCity/conf
70
70
cp buildAgent.dist.properties buildAgent.properties
71
71
72
72
# Set the build agent name and CI server urls
73
- sed -i " s/name=.*/name=$AGENTNAME /" buildAgent.properties
74
- sed -i " s#serverUrl=.*#serverUrl=$SERVERURL #g" buildAgent.properties
73
+ sed -i " s|^name=.*|name=$AGENTNAME |" buildAgent.properties
74
+ sed -i " s|^serverUrl=.*|serverUrl=$SERVERURL |" buildAgent.properties
75
+
76
+ # Use the local SSD (/mnt) for the work and temp dirs.
77
+ # * It should be as fast or faster than the OS disk (which is backed by blob storage).
78
+ # * It reduces load and storage on the OS disk.
79
+ # * The data on the local SSD may lost at any time (typically after a reboot), but this
80
+ # should be fine for the work and temp dirs.
81
+ sed -i " s|^workDir=.*|workDir=/mnt/work|" buildAgent.properties
82
+ sed -i " s|^tempDir=.*|tempDir=/mnt/temp|" buildAgent.properties
75
83
76
84
echo >> buildAgent.properties # append a new line
77
85
echo " system.aspnet.os.name=$ASPNETOSNAME " >> buildAgent.properties
You can’t perform that action at this time.
0 commit comments