Skip to content

Multi-level Parameters #302

Closed
Closed

Description

@nebhale

Currently the params configuration element only allows a single level object depth. In attempt to support Slack Message Attachments, it'd be great if we could have arbitrarily deep configuration objects.

Having this ability results in messages with a bit more flash:

screen shot 2016-02-28 at 10 07 32

instead of

screen shot 2016-02-28 at 10 07 41

Currently a configuration like

---
jobs:
- name: some-job
  plan:
  - put: slack-alert
    params:
      attachments:
      - color: good
        fallback: $BUILD_PIPELINE_NAME #$BUILD_NAME has been deployed: $ATC_EXTERNAL_URL/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
        text: $BUILD_PIPELINE_NAME <$ATC_EXTERNAL_URL/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|#$BUILD_NAME> has been deployed

results in

error: Unexpected Response
Status: 500 Internal Server Error
Body:
failed to save config: json: unsupported type: map[interface {}]interface {}

Activity

  1. concourse-bot commented on Feb 28, 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:

    • #114640207 Support multi-level parameters for resources

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

  2. concourse-bot commented on Mar 10, 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:

    • #114640207 Support multi-level parameters for resources

    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!

  3. added a commit that references this issue on Mar 31, 2017
  4. added a commit that references this issue on Apr 10, 2017
  5. added a commit that references this issue on Sep 10, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions