Open arewm opened 1 month ago
+1!
In case someone comes across this issue, this is a request to add support for the when
attribute for the items in the matrix.includes
list.
/assign
A small problem, when.values
should be an array
when:
- input: "amd64"
operator: in
values:
- "$(params.enabled-platforms[*])"
Feature request
Using
matrix.include
is helpful for reducing duplication in pipeline definitions when there are specific parameter configurations that are needed. All possible parameter configuration are not, however, needed for all PipelineRuns. It would be beneficial if we could use parameters to configure which items inmatrix.include
are actually used for a PipelineRun.Use case
As a user, I want to be able to customize my pipeline runs only using the pipeline parameters. If I do not need all configured matrix includes, I should not need to modify the pipeline definition.
Pipeline definition snippet (i.e. can be referenced using the git resolver):
Pipeline run snippet (pipeline is not running properly on ppc64le or s390x, so we will disable them):