Skip to content

Add support to pin or specify resource versions #256

Closed

Description

@keymon

This issue is to continue the discussion initiated in slack

What

I would like to suggest that one can "pin" the version of the resource to be consumed in the manifest or when triggered the job.

This way we can keep defining dependencies as resources in concourse but force the jobs to always use the same specific version.

Example of pinning version in the manifest

For example, a user wants to be being able to use the resources bosh-io-stemcell, bosh-io-release together with bosh-release. He wants to keep using always the same version of the release and stemcell, regardless a new one is released.

The definition in the pipeline can be like this:

  - name: deploy
    serial: true
    plan:
      - aggregate:
        - get: cf-stemcell
          version: {{ stemcell_version }}
        - task: cf-release
          version: 215
        - get: cf-manifest
          passed: ['generate-manifest']
          trigger: true
      - put: cf-deployment
        params:
          manifest: cf-manifest/cf-manifest.yml
          stemcells: 
            - cf-stemcell/stemcell.tgz
          releases:
            - cf-release/release.tgz

Example of triggering a job with a specific version

Here the idea is implement the interface and API controllers required to start a new execution of a job but specifying a valid upstream version of the resources consumed.

This would allow to create custom builds based on specific versions of dependent resources picked adhoc, but without having to re-upload the pipeline to pin some specific versions (providing the pin feature exists ;))

GoCD supports this feature and is explained here: https://www.go.cd/documentation/user/current/advanced_usage/trigger_with_options.html

Use cases

  • Pin versions of dependencies

Activity

  1. concourse-bot commented on Jan 15, 2016

    @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:

    • #111783826 Add support to pin or specify resource versions

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

  2. ScarletTanager commented on Jan 26, 2016

    @ScarletTanager

    +1 - this would be IMHO a really valuable feature - our team could use it right now, were it available.

  3. tylerschultz commented on Mar 25, 2016

    @tylerschultz

    +1 - sounds delightful!

  4. medvedzver commented on Mar 25, 2016

    @medvedzver

    +1. Would use!

  5. rnandi commented on Mar 25, 2016

    @rnandi

    +1 - this feature would make me fly!

  6. 1 remaining item

  7. concourse-bot commented on Apr 26, 2016

    @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:

    • #111783826 Add support to pin or specify resource versions

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  8. keymon commented on Apr 27, 2016

    @keymon
    ContributorAuthor

    Thank you a lot for implementing this it is awesome.

    I wonder if you also implemented the second part of the request:

    Example of triggering a job with a specific version

    Here the idea is implement the interface and API controllers required to start a new execution of a job but specifying a valid upstream version of the resources consumed.

    This would allow to create custom builds based on specific versions of dependent resources picked adhoc, but without having to re-upload the pipeline to pin some specific versions (providing the pin feature exists ;))

    GoCD supports this feature and is explained here: https://www.go.cd/documentation/user/current/advanced_usage/trigger_with_options.html

    If not, I would create a different feature request to discuss it.

  9. vito commented on Apr 28, 2016

    @vito
    Contributor

    @keymon Yeah that sounds like a separate request.

  10. 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