Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another example for better clarity #14

Open
wsierakowski opened this issue Aug 18, 2021 · 2 comments
Open

Add another example for better clarity #14

wsierakowski opened this issue Aug 18, 2021 · 2 comments

Comments

@wsierakowski
Copy link

I might have a problem with understanding the provided example, it is not entirely clear to me how to write to the properties file. Based on my understanding, I came up with the following pipeline:

jobs:
- name: job1
  plan:
  - get: source-repo
    trigger: false
  - task: get-version
    config:
      platform: linux
      image_resource:
        type: registry-image
        source:
          repository: node
          tag: 16
      inputs:
      - name: source-repo
      run:
        path: sh
        args:
        - -cx
        - |
          mkdir keyvalout
          echo tag=123 > keyvalout/keyval.properties
  - put: keyval
    params:
      file: keyvalout/keyval.properties
- name: job2
  plan:
  - in_parallel:
    - get: keyval
      passed: [job1]
  - task: list-files
    config:
      platform: linux
      image_resource:
        type: registry-image
        source:
          repository: node
          tag: 16
      inputs:
      - name: source-repo
      run:
        path: sh
        args:
        - -cx
        - |
          ls -lah keyvalout
          cat keyvalout/keyval.properties

...but the keyval-resource doesn't work giving me this error:

reading input file /tmp/build/put/keyvalout/keyval.properties
2021/08/18 16:40:12 open /tmp/build/put/keyvalout/keyval.properties: no such file or directory

I'm pretty sure the resource works, I'm just not able to use it correctly with the example provided.

@Winael
Copy link

Winael commented Sep 10, 2021

I also have the same issue. But this project seems not to be supported yed :(

@bgandon
Copy link

bgandon commented May 11, 2024

Unfortunately yes, this project is no more maintained.

But the Cloud Foundry community and I are maintaining a bunch of Concourse resources, and the gstackio/keyval-resource now supersedes this one.

The new resource uses plain files for storing key-values, which turns out to be much more convenient compared with the java .properties file format.

If you could give it a try gstackio/keyval-resource and share feedback there, that would be sweet. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants