jenkinsci / jenkinsci/matrix-project-plugin

[JENKINS-32762] Allow optional matrix axes

Open
#640 1 comment 0 reactions 0 assignees View on GitHub
component:matrix-project-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
17
Forks
85
Avg merge
4h 27m
Merged PRs (30d)
5

Description

I have a Jenkins job which runs unit tests on different PHP versions. To do this, I have a `PHP_VERSION` axes. I would like to ensure that our unit tests are passing on PHP 5.3, 5.4, 5.5 and 5.6 but not on PHP 7. That is, I would like to run our unit test suite on PHP 7, but I do not care if the job fails.

It doesn't seem possible to create an optional variant in a matrix axes.

---
Originally reported by joshuaspence, imported from: Allow optional matrix axes


  • assignee: kohsuke
  • status: Open
  • priority: Minor
  • component(s): matrix-project-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-06

Raw content of original issue

I have a Jenkins job which runs unit tests on different PHP versions. To do this, I have a `PHP_VERSION` axes. I would like to ensure that our unit tests are passing on PHP 5.3, 5.4, 5.5 and 5.6 but not on PHP 7. That is, I would like to run our unit test suite on PHP 7, but I do not care if the job fails.

It doesn't seem possible to create an optional variant in a matrix axes.

environment

```
Jenkins 1.646

Matrix Project Plugin 1.6
```

Contributor guide

Open the contributing guide

Research direction

The issue names the matrix-project-plugin but no source files, tests, or entry points. Start by locating the plugin's matrix-axis configuration and build-result handling, then determine how an optional axis variant should affect job status; done means PHP 7 can run without making the matrix job fail while required versions remain enforced.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php
Domain
ci-cd
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.