Agent definition can be specified on pipeline (or in future on the task level) and is defining type of machine and operating system image that will be used for executing jobs. Semaphore spins up a new fresh machine for each job in the pipeline.
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
- type – is specifying type of the machine that will be used. For available machine types consult machine types documentation page.
- os_image – is specifying which operating system image will be used. For available operation system images please consult operating system images documentation page.
version: v1.0
name: Agent example pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: "Build"
task:
jobs:
- name: Agent info
commands:
- free -m
- lsb_release --all