github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/web/wats/fixtures/states-pipeline.yml (about)

     1  ---
     2  resources:
     3  - name: some-resource
     4    type: mock
     5    source: {mirror_self: true}
     6  
     7  - name: broken-time
     8    type: time
     9    source: {interval: banana}
    10  
    11  - name: impossible-time
    12    type: time
    13    source:
    14      start: 1:00 AM
    15      stop: 1:00 AM
    16  
    17  jobs:
    18  - name: failing
    19    plan:
    20    - task: fail
    21      config:
    22        platform: linux
    23  
    24        image_resource:
    25          type: mock
    26          source: {mirror_self: true}
    27  
    28        run:
    29          path: sh
    30          args:
    31          - '-ec'
    32          - |
    33            echo i failed
    34            exit 1
    35  
    36  - name: passing_or_failing
    37    plan:
    38    - task: pass_or_fail
    39      config:
    40        platform: linux
    41  
    42        image_resource:
    43          type: mock
    44          source: {mirror_self: true}
    45  
    46        run: {path: ((path))}
    47  
    48  - name: passing
    49    plan:
    50    - task: pass
    51      config:
    52        platform: linux
    53  
    54        image_resource:
    55          type: mock
    56          source: {mirror_self: true}
    57  
    58        run: {path: 'echo', args: ['i passed']}
    59  
    60  - name: erroring
    61    plan:
    62    - task: error
    63      config:
    64        platform: linux
    65  
    66        image_resource:
    67          type: mock
    68          source: {mirror_self: true}
    69  
    70        run: {path: 'banana'}
    71  
    72  - name: running
    73    plan:
    74    - task: run
    75      config:
    76        platform: linux
    77  
    78        image_resource:
    79          type: mock
    80          source: {mirror_self: true}
    81  
    82        run:
    83          path: sh
    84          args:
    85          - -ec
    86          - |
    87            echo hello
    88  
    89            while sleep 1; do
    90              echo looping
    91            done
    92  
    93  - name: pending
    94    plan:
    95    - get: impossible-time
    96  
    97  - name: broken-resource
    98    plan:
    99    - get: broken-time
   100  
   101  - name: resource-metadata
   102    plan:
   103    - get: some-resource
   104  
   105  - name: unavailable-pinned-input
   106    plan:
   107    - get: impossible-time
   108      version: {time: "2017-08-11T00:13:33.123805549Z"}
   109  
   110  - name: unavailable-constrained-input
   111    plan:
   112    - get: impossible-time
   113      passed: [pending]