github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/topgun/pipelines/get-resource-and-wait.yml (about)

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