Is it possible to pass the whole matrix as a list to a command in buildkite step?
Hey @nagarwal ,
This is Suma from Buildkite support team. Thank you for reaching out to us with your question on matrix.
Here are few examples on how you can pass matrix to command step
Please can you confirm if those address your need, If not when you say pass whole matrix can you share an example pipeline on how you would like to have this working so I can check on this.
Thanks,
Suma
Thanks Suma.
Basically we have a use case where if we define set of values as matrix like:
matrix:
- args1
- args2
then we want to send both args1, and args2 as a list a command like:
some_command args1 arg2
now since matrix already has that value as list, so i wonder if it is possible to just pass all matrix values as list
Hi @nagarwal,
I don’t think we have a way to reference the values that is created for the matrix variables as you described. However, if you would programmatically define your matrix step, you would have a way to reference the values into your command.
Cheers!