File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ echo Writing Phase 2/2 for /var/lib/buildkite-agent/cfn-env helper function...
131
131
cat << EOF >>/var/lib/buildkite-agent/cfn-env
132
132
133
133
set_always "BUILDKITE_AGENTS_PER_INSTANCE" "$BUILDKITE_AGENTS_PER_INSTANCE "
134
+
135
+ # also set via /etc/systemd/system/buildkite-agent.service.d/environment.conf
136
+ set_always "BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB" "$BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB "
137
+
134
138
set_always "BUILDKITE_ECR_POLICY" "${BUILDKITE_ECR_POLICY:- none} "
135
139
set_always "BUILDKITE_SECRETS_BUCKET" "$BUILDKITE_SECRETS_BUCKET "
136
140
set_always "BUILDKITE_SECRETS_BUCKET_REGION" "$BUILDKITE_SECRETS_BUCKET_REGION "
357
361
echo " Waited $next_wait_time times for docker to start. We will exit if it still has not started."
358
362
check_docker
359
363
364
+ # also set in /var/lib/buildkite-agent/cfn-env so that its shown in the job logs
360
365
systemctl set-environment " BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB=${BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB} "
361
366
echo Starting buildkite-agent...
362
367
systemctl enable --now buildkite-agent
You can’t perform that action at this time.
0 commit comments