You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/runner-installation.adoc
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -483,7 +483,7 @@ After setup completes, the Launch Agent starts automatically and begins looking
483
483
484
484
See: xref:runner-on-kubernetes.adoc[Runner on Kubernetes]
485
485
486
-
== Configuration file reference
486
+
== Configuration reference
487
487
488
488
A YAML file is used to configure the launch agent, how it communicates with our servers and how it will launch the task agent.
489
489
@@ -496,27 +496,35 @@ runner:
496
496
name: RUNNER_NAME
497
497
```
498
498
499
+
NOTE: The launch agent can also be configured via environment variables by supplying the `--env` flag to the launch agent command.
500
+
499
501
=== runner.name
502
+
`$LAUNCH_AGENT_RUNNER_NAME`
500
503
501
504
`RUNNER_NAME` is a unique name assigned to this particular running launch agent. CircleCI recommends using the hostname of the machine so that it can be used to identify the agent when viewing statuses and job results in the CircleCI UI.
502
505
503
506
=== api.auth_token
507
+
`$LAUNCH_AGENT_API_AUTH_TOKEN`
504
508
505
509
This is a token used to identify the launch agent to CircleCI and can be generated by the CircleCI CLI. An existing token may be shared among many installations, but this token only allows a particular `resource_class` to be specified.
506
510
507
511
=== runner.command_prefix
512
+
`$LAUNCH_AGENT_RUNNER_COMMAND_PREFIX`
508
513
509
514
This prefix enables you to customize how the task agent process is launched. Using a custom script here can allow you to execute arbitrary commands before and after the task runner. You should take care to ensure the supplied arguments are executed, and the correct exit code is returned from the script upon completion.
510
515
511
516
=== runner.working_directory
517
+
`$LAUNCH_AGENT_RUNNER_WORK_DIR`
512
518
513
519
This directory allows you to control the default working directory used by each job. If the directory already exists, task agent will need permissions to write to the directory. If the directory does not exist, then the task agent will need permissions to create the directory. If `%s` is present in the value, this value will be replaced with a different value for each job. Note that these directories will not be automatically removed.
514
520
515
521
=== runner.cleanup_working_directory
522
+
`$LAUNCH_AGENT_RUNNER_CLEANUP_WORK_DIR`
516
523
517
524
This directory enables you to control the working directory cleanup after each job. The default value is `false`.
518
525
519
526
=== runner.mode
527
+
`$LAUNCH_AGENT_RUNNER_MODE`
520
528
521
529
This parameter allows you to specify whether you want to terminate this runner instance upon completion of a job (single-task) or to continuously poll for new available jobs.
522
530
@@ -528,6 +536,7 @@ The possible values are:
528
536
NOTE: The default value is continuous.
529
537
530
538
=== runner.max_run_time
539
+
`$LAUNCH_AGENT_RUNNER_MAX_RUN_TIME`
531
540
532
541
This value can be used to override the default maximum duration the task agent will run each job. Note that the value is a string with the following unit identifiers `h`, `m` or `s` for hour minute and seconds respectively:
533
542
@@ -553,12 +562,14 @@ Draining can end in one of two ways:
553
562
* An additional TERM signal is received by the Launch Agent during "draining".
554
563
555
564
=== runner.idle_timeout
565
+
`$LAUNCH_AGENT_RUNNER_IDLE_TIMEOUT`
556
566
557
567
This timeout will enable a launch agent to terminate if no task has been claimed within the given time period. The value is a string with the following unit identifiers: `h`, `m` or `s` for hours, minutes and seconds, respectively (e.g., `5m` is 5 minutes).
558
568
559
569
NOTE: The default behaviour is to never time out due to inactivity.
560
570
561
571
=== runner.ssh.advertise_addr
572
+
`$LAUNCH_AGENT_RUNNER_SSH_ADVERTISE_ADDR`
562
573
563
574
This parameter enables the 'Rerun job with SSH' feature. Before enabling this feature, there are xref:runner-installation.adoc#considerations-before-enabling-ssh-debugging[*important considerations that should be made*].
0 commit comments