Skip to content

[JENKINS-69609] Cannot DRY list of matrix axis values #1463

@jenkins-infra-bot

Description

@jenkins-infra-bot

It seems there is no way to use (even a constant) variable for a matrix's axis values.

To be perfectly clear, I am not looking for a dynamic list.  There are a number of tickets open on that already which explain why that is difficult to do.

All that I am trying to do is DRY out a duplicated list for values so that I can change the list in one place in the Jenkinsfile and use it in multiple matrixes in the same Jenkinsfile.


Originally reported by brianjmurrell, imported from: Cannot DRY list of matrix axis values
  • status: Open
  • priority: Major
  • component(s): pipeline-model-definition-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 5
  • imported: 2025-12-06
Raw content of original issue

It seems there is no way to use (even a constant) variable for a matrix's axis values.

To be perfectly clear, I am not looking for a dynamic list.  There are a number of tickets open on that already which explain why that is difficult to do.

All that I am trying to do is DRY out a duplicated list for values so that I can change the list in one place in the Jenkinsfile and use it in multiple matrixes in the same Jenkinsfile.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions