File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -135,25 +135,30 @@ if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
135
135
fi
136
136
137
137
BUILDKITE_AGENT_GIT_MIRRORS_PATH=" /var/lib/buildkite-agent/git-mirrors"
138
+ mkdir -p " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
138
139
139
140
if [ " ${BUILDKITE_ENABLE_INSTANCE_STORAGE:- false} " == " true" ]
140
141
then
141
142
EPHEMERAL_GIT_MIRRORS_PATH=" /mnt/ephemeral/git-mirrors"
142
143
mkdir -p " ${EPHEMERAL_GIT_MIRRORS_PATH} "
144
+
143
145
mount -o bind " ${EPHEMERAL_GIT_MIRRORS_PATH} " " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
144
146
echo " ${EPHEMERAL_GIT_MIRRORS_PATH} ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} none defaults,bind 0 0" >> /etc/fstab
145
147
fi
148
+
149
+ chown buildkite-agent: " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
146
150
fi
147
151
148
152
BUILDKITE_AGENT_BUILD_PATH=" /var/lib/buildkite-agent/builds"
153
+ mkdir -p " ${BUILDKITE_AGENT_BUILD_PATH} "
149
154
if [ " ${BUILDKITE_ENABLE_INSTANCE_STORAGE:- false} " == " true" ]
150
155
then
151
156
EPHEMERAL_BUILD_PATH=" /mnt/ephemeral/builds"
152
157
mkdir -p " ${EPHEMERAL_BUILD_PATH} "
153
158
mount -o bind " ${EPHEMERAL_BUILD_PATH} " " ${BUILDKITE_AGENT_BUILD_PATH} "
154
159
echo " ${EPHEMERAL_BUILD_PATH} ${BUILDKITE_AGENT_BUILD_PATH} none defaults,bind 0 0" >> /etc/fstab
155
- chown buildkite-agent: " ${BUILDKITE_AGENT_BUILD_PATH} "
156
160
fi
161
+ chown buildkite-agent: " ${BUILDKITE_AGENT_BUILD_PATH} "
157
162
158
163
BUILDKITE_AGENT_TOKEN=" $( aws ssm get-parameter --name " ${BUILDKITE_AGENT_TOKEN_PATH} " --with-decryption --query Parameter.Value --output text) "
159
164
You can’t perform that action at this time.
0 commit comments