github.com/chenbh/concourse/v6@v6.4.2/testflight/fixtures/task-caches.yml (about) 1 --- 2 resources: 3 - name: some-resource 4 type: mock 5 source: 6 # If we were to just inline these in the task config, we would see the 7 # echoing of the things we are looking for when it says "running ...". 8 # 9 # So to prevent this we put the scripts in to files so it just says 10 # "running sh some-resource/first-script.sh" and only prints what the 11 # scripts actually print. 12 create_files: 13 first-script.sh: | 14 echo not-cached-from-first-task >> first-task-output/not-cached-from-first-task 15 16 mkdir first-task-output/blobs 17 echo blob-contents-from-first-task >> first-task-output/blobs/blob 18 19 second-script.sh: | 20 cat ./first-task-output/not-cached-from-first-task 21 22 echo not-cached-from-second-task >> first-task-output/not-cached-from-second-task 23 cat ./first-task-output/not-cached-from-second-task 24 25 echo blob-contents-from-second-task >> ./first-task-output/blobs/blob 26 cat ./first-task-output/blobs/blob 27 28 echo second-task-cache-contents >> ./second-task-cache/cache 29 cat ./second-task-cache/cache 30 31 jobs: 32 - name: simple 33 plan: 34 - get: some-resource 35 - task: first-task 36 config: 37 platform: linux 38 39 image_resource: 40 type: mock 41 source: {mirror_self: true} 42 43 inputs: 44 - name: some-resource 45 46 outputs: 47 - name: first-task-output 48 49 run: 50 path: sh 51 args: 52 - some-resource/first-script.sh 53 54 - task: second-task 55 config: 56 platform: linux 57 58 image_resource: 59 type: mock 60 source: {mirror_self: true} 61 62 inputs: 63 - name: some-resource 64 - name: first-task-output 65 66 caches: 67 - path: first-task-output/blobs 68 - path: second-task-cache 69 70 run: 71 path: sh 72 args: 73 - some-resource/second-script.sh