jenkinsci / jenkinsci/matrix-project-plugin

[JENKINS-44286] Matrix jobs are not built on assigned node

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

Description

Jenkins 2.61 (and at least as far back as 2.58) with the Matrix Project plugin 1.11 (and 1.10) are not  (always) running on their assigned node.

I have a job that pushes backups into the cloud from a specific node, so it is important that the job runs on that node. The job has a user-defined axis which specifies the source directory, so that it can run multiple types of backup.

When I run the job, the touchstone build runs on the assigned node and the job with the second axis value runs on the assigned node, but the job with the first axis value runs on a different node.

As I changes the axis values, the job starts to run on different incorrect nodes.

This appears to only happen on matrix jobs, not others. I'm not sure how long this has been happening for, as we don't otherwise have many matrix jobs that should run on one specific node only.

I'm not sure if it's relevant, but when I configure the matrix jobs in question, the advanced section with the "Restrict where this project can be run" option is collapsed, as if it contains no configuration.

---
Originally reported by cafuego, imported from: Matrix jobs are not built on assigned node


  • assignee: kohsuke
  • status: Open
  • priority: Major
  • component(s): matrix-project-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-06

Raw content of original issue

Jenkins 2.61 (and at least as far back as 2.58) with the Matrix Project plugin 1.11 (and 1.10) are not  (always) running on their assigned node.

I have a job that pushes backups into the cloud from a specific node, so it is important that the job runs on that node. The job has a user-defined axis which specifies the source directory, so that it can run multiple types of backup.

When I run the job, the touchstone build runs on the assigned node and the job with the second axis value runs on the assigned node, but the job with the first axis value runs on a different node.

As I changes the axis values, the job starts to run on different incorrect nodes.

This appears to only happen on matrix jobs, not others. I'm not sure how long this has been happening for, as we don't otherwise have many matrix jobs that should run on one specific node only.

I'm not sure if it's relevant, but when I configure the matrix jobs in question, the advanced section with the "Restrict where this project can be run" option is collapsed, as if it contains no configuration.

  • environment: Jenkins 2.58 - 2.61, matrix 1.10 - 1.11

Contributor guide

Open the contributing guide

Research direction

The issue identifies the matrix-project-plugin and Jenkins 2.58–2.61 with Matrix Project 1.10–1.11, but no source file or test. Start by reproducing a matrix job with a user-defined axis and a restricted node, then trace why the axis builds are scheduled elsewhere. Done means every axis build runs on the assigned node.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.