github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/topgun/pipelines/get-task-put-waiting.yml (about)

     1  resources:
     2  - name: tick-tock
     3    type: time
     4    source:
     5      interval: 1h
     6  
     7  jobs:
     8  - name: simple-job
     9    plan:
    10    - get: tick-tock
    11    - task: simple-task
    12      config:
    13        platform: linux
    14        image_resource:
    15          type: mock
    16          source: {mirror_self: true}
    17        inputs:
    18        - name: tick-tock
    19        run:
    20          path: sh
    21          args:
    22          - -c
    23          - |
    24            until test -f /tmp/stop-waiting; do
    25              echo 'waiting for /tmp/stop-waiting to exist'
    26              sleep 1
    27            done
    28  
    29            echo done
    30    - put: tick-tock