51
Allow list-type parameters in Orbs
Dave Henderson
It'd be useful to allow handling lists of values for a parameter, without having to resort to workarounds like parsing comma-separated lists in
string
types.I think it would be useful to be able to specify something like:
steps:
- myorb/foo:
bar:
- baz
- qux
And have the
myorb/foo
command called with a bar
parameter equal to [ "baz", "qux" ]
.CCI-I-701
Activity
Newest
Oldest
Steve Lewis
Similar to many below, I just ran into this in trying to template our usage of persist_to_workspace paths for a private orb.
FWIW - I believe this wouldn't need any looping construct to be valuable in many contexts.
Jayson Smith
I've recently run into this when trying to pass a collection to the paths key for save_cache in an orb I've written.
Patrick-Ranjit D. Madsen
yes, something like tags are an obvious use-case. Similarly, a map type for passing for instance configurations etc. to a re-usable command would be fantastic.
E
Emerson Farrugia
An obvious use case being https://github.com/CircleCI-Public/aws-ecr-orb/issues/20, e.g. ``
tags: - ${CIRCLE_BRANCH}-${CIRCLE_BUILD_NUM} - ${CIRCLE_SHA1} - "latest"
``