Setting Up Pipeline

---
jobs:
- name: job-hello-world
  public: true
  plan:
  - task: hello-world
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: {repository: busybox}
      run:
        path: echo
        args: [hello world]

fly --target tutorial set-pipeline --config pipeline.yml --pipeline helloworld

You set up a pipeline called helloworld. The pipeline will default be paused. Unpause it

fly --target tutorial unpause-pipeline --pipeline helloworld

Go to web view, listed in the CL. Now run the plus button to start the task.

Setting Up Pipeline with Resource

---
resources:
- name: resource-tutorial
  type: git
  source:
    uri: https://github.com/starkandwayne/concourse-tutorial.git

jobs:
- name: job-hello-world
  public: true
  plan:
  - get: resource-tutorial
  - task: hello-world
    file: resource-tutorial/01_task_hello_world/task_hello_world.yml

Pros and Cons of putting task in YAML file outside pipeline.

Pros - files can be too long to read, we can give them long names so readers can understand whats going on

Cons - Users wont know whats going on

results matching ""

    No results matching ""