Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.15 KB

agent_5b2500d02c7d3a0fa9a3110f.md

File metadata and controls

43 lines (33 loc) · 1.15 KB

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.

Definition

agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804

Example

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