Request an invite
Docs menu

osmates runner add

Add a GitHub runner pool, whose slots fill at once.

Usage
osmates runner add [<options>] <name> --from <from> --github <scope> --credential <credential>

Each runner has the labels self-hosted, its system (Linux, macOS or Windows) and ARM64, and those --label adds. --github takes owner/repository for a repository's runners, or an organization's name. The token needs the Administration permission of the repository, or Self-hosted runners of the organization, with write access. A macOS pool has at most 2 slots.

Arguments

<name>Required

The pool's name: lowercase letters, digits and hyphens.

--from <from>Required

The machine or template each slot clones.

--github <scope>Required

The repository, as owner/repository, or the organization.

--credential <credential>Required

The credential that holds the GitHub token.

--slots <slots>

How many clones run at once.

Default: 1

--label <label>Repeatable

A label of the pool's runners; repeat for more.

--group <group>

The runner group's id; 1 is the default group.

Default: 1

--api <api>

GitHub's API, such as https://<host>/api/v3 for GitHub Enterprise Server.

Default: https://api.github.com

--runner-folder <runner-folder>

Where GitHub's runner is unpacked in the guest.

--desktop

Run the runner as the user signed in at the screen, for jobs that need the desktop.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/runner/add.json

lastFailureobject
lastFailure.atstring (date-time)Required
lastFailure.textstringRequired
poolobjectRequired
pool.apistring (uri)Required
pool.credentialstringRequired
pool.githubobjectRequired
pool.labelsarray of stringsRequired
pool.namestringRequired
pool.onDesktopbooleanRequired
pool.runnerFolderstring
pool.runnerGroupintegerRequired
pool.slotsintegerRequired
pool.sourcestringRequired
runsEndedintegerRequired
slotsarray of objectsRequired
slots[].clonestring
slots[].detailstring
slots[].indexintegerRequired
slots[].phasestringRequired

One of waiting, starting, registering, running, cleaning.

slots[].runnerinteger
slots[].sincestring (date-time)Required
systemstring

One of linux, macOS, windows, freeBSD.

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page