github.com/chenbh/concourse/v6@v6.4.2/testflight/fixtures/var-sources.yml (about) 1 --- 2 var_sources: 3 - name: vs 4 type: dummy 5 config: 6 vars: 7 some_var: hello-im-a-var 8 some_numeric_var: 42 9 initial_version_var: hello-im-a-version 10 var:with.and_colon: 11 some_key: some-value 12 13 resources: 14 - name: resource-using-vars 15 type: mock 16 source: 17 initial_version: ((vs:initial_version_var)) 18 create_files: 19 some_file: ((vs:some_numeric_var)) 20 21 jobs: 22 - name: use-vars 23 plan: 24 - get: resource-using-vars 25 - task: use-vars 26 config: 27 platform: linux 28 29 image_resource: 30 type: mock 31 source: {mirror_self: true} 32 33 inputs: 34 - name: resource-using-vars 35 36 run: 37 path: sh 38 args: 39 - -exc 40 - | 41 test "((vs:some_var))" = "hello-im-a-var" 42 test "((vs:"var:with.and_colon".some_key))" = "some-value" 43 test "$(cat resource-using-vars/version)" = "hello-im-a-version" 44 test "$(cat resource-using-vars/some_file)" = "42"