Route

Example Pipeline with build routing

Example Yaml configuration for a project requiring a specific runtime or platform.

Scenario

User is looking to create a pipeline that can only run within a Docker runtime.

Steps

The following pipeline concepts are being used in the pipeline below:

version: "1"

worker:
  platform: docker

steps:
  - name: view worker name
    image: alpine:latest
    pull: always
    commands:
      - echo "Hello ${BUILD_HOST} Worker!!"

Stages

The following pipeline concepts are being used in the pipeline below:

version: "1"

worker:
  platform: docker

stages:
  docker:
    steps:
      - name: view worker name
        image: alpine:latest
        pull: always
        commands:
          - echo "Hello ${BUILD_HOST} Worker!!"