Skip to content

Pass key values between jobs #1804

Closed
Closed

Description

@regevbr

Feature Request

What challenge are you facing?

Currently, the only way to pass data between jobs is using resources, which requires writing data to some external resource such as s3 or git repo. This is very handy and understandable to pass along big data and file structures.
I was surprised to realize that if you want to pass some key values form one job to another is unfeasible. For example, in the spring-cloud-pipelines project, they pass the current version using a github branch with one file and each worker needs to clone it locally just to get a hold of a simple string value that represents the version.
I think it is only natural to allow to pass out a set of key values between jobs, reducing the redundancy of having to have a resource just for it.

A Modest Proposal

Create a new type of resource (File?) that gets in the put phase a file to send out to the get in the following jobs. The only thing is that this resource has no configuration as it is not connected to any external service but being handled only by the Conourse orchestrator.

Activity

  1. regevbr commented on Nov 9, 2017

    @regevbr
    Author

    I will create a resource myself based on the time resource and pass the variables using the version part.
    Will update here when done so you can consider making it an official resources

  2. regevbr commented on Nov 13, 2017

    @regevbr
    Author

    created the repo https://github.com/regevbr/keyval-resource for implementing this behavior.
    The resource is tested and published in the docker registrey

  3. regevbr commented on Nov 13, 2017

    @regevbr
    Author

    @jama-pivotal already did :-)

  4. jama22 commented on Nov 13, 2017

    @jama22

    Merged @regevbr you should be seeing it on the website soon. I'll have to ask @vito to weigh in on whether or not we'll be rolling this in as an official resource, but afaik we're actually hoping to shed resources from the default package and work instead on making resources more accessible and discoverable

  5. regevbr commented on Nov 13, 2017

    @regevbr
    Author

    Perfect thanks!
    Keep me posted please

  6. vito commented on Jan 24, 2018

    @vito
    Contributor

    Looks like this is resolved. As @jama-pivotal indicated we're unlikely to pull this resource into the core, but thanks for making it!

  7. added a commit that references this issue on Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions