Skip to content

Disconnect display name of resource from internal name #103

Closed

Description

@krishicks

tldr: It should be possible to explicitly set the display name of a resource because I don't want to have to update a task.yml when updating a display name.

I used to have one resource:

resources:
- name: goulash
  type: git
  source:
    branch: master
    private_key: {{github-private-key}}
    uri: [email protected]:pivotalservices/goulash.git

I now want to pull from develop to run tests and push to master, which means updating the resources:

resources:
- name: goulash-develop
  type: git
  source:
    branch: develop
    private_key: {{github-private-key}}
    uri: [email protected]:pivotalservices/goulash.git
- name: goulash-master
  type: git
  source:
    branch: master
    private_key: {{github-private-key}}
    uri: [email protected]:pivotalservices/goulash.git

However, now my task.yml has to know about the name change as well:

inputs:
- name: goulash-develop
  path: go/src/github.com/pivotalservices/goulash

I want them named as goulash-develop and goulash-master because that makes sense for me when I'm defining my pipeline and viewing it later. It doesn't make sense in the context of the task.yml.

Activity

  1. concourse-bot commented on Aug 5, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #100693488 Disconnect display name of resource from internal name

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. xoebus commented on Aug 6, 2015

    @xoebus
    Contributor

    Your task.yml should stay the same but you can say in your job plan that a different resource fulfills the goulash input interface by using the resource attribute.

    For example:

    - get: goulash
      resource: goulash-develop
    

    It's designed this way so that your tasks can describe interfaces of what they need (bosh-stemcell) and then the pipeline can provide an implementation (aws-stemcell or vsphere-stemcell) so that the same task.yml can be reused.

  3. concourse-bot commented on Aug 6, 2015

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #100693488 Disconnect display name of resource from internal name

    If you feel there is still more to be done or have any questions, feel free to reopen!

  4. vito commented on Aug 6, 2015

    @vito
    Contributor

    Yep. Your task should have high-level input names that are then satisfied by whatever concrete resources makes sense in the pipeline. So your input name should be goulash, not goulash-develop.

  5. krishicks commented on Aug 7, 2015

    @krishicks
    ContributorAuthor

    I have updated my pipeline yml.

  6. added a commit that references this issue on Aug 17, 2016
  7. added a commit that references this issue on Sep 15, 2016
  8. added a commit that references this issue on Mar 15, 2018
  9. 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