jenkinsci / jenkinsci/matrix-project-plugin

[JENKINS-9593] Copy artifact fails when slave is offline

Open
#460 0 comments 0 reactions 0 assignees View on GitHub
component:copyartifact-plugin 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

Hello,

I have a matrix build which does some testing on several slaves.

At the end of this matrix job, a job is triggered in order to retrieve all logs and compile it in a global report.

I had to set a idle timeout for these slaves because I use the label-verifier plugin (which seems to dont have a category in Jenkins bugtracker).

And I want this verifier to check for the labels as often as possible (a slave can become unavailable and must be turned of in this case)

The problem is, a slave can shutdown because of the timeout (and not because of the label-verifier)

-> its workspace becomes unavailable to the report-job.

And then the report job fails with this message:

-> Unable to access workspace for artifact copy. Slave node offline?

It would be nice if the slave node could be restarted automatically when the artifact is needed.

PS:

Or/and if a "period" can be set on the label-verifier plugin

Sorry, I did not found the correct category to fill an "improvement request" on the label-verifier plugin too.

---
Originally reported by ebann, imported from: Copy artifact fails when slave is offline


  • status: Open
  • priority: Major
  • component(s): copyartifact-plugin, matrix-project-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 4
  • imported: 2025-12-06

Raw content of original issue

Hello,

I have a matrix build which does some testing on several slaves.
At the end of this matrix job, a job is triggered in order to retrieve all logs and compile it in a global report.

I had to set a idle timeout for these slaves because I use the label-verifier plugin (which seems to dont have a category in Jenkins bugtracker).
And I want this verifier to check for the labels as often as possible (a slave can become unavailable and must be turned of in this case)

The problem is, a slave can shutdown because of the timeout (and not because of the label-verifier)
-> its workspace becomes unavailable to the report-job.

And then the report job fails with this message:
-> Unable to access workspace for artifact copy. Slave node offline?

It would be nice if the slave node could be restarted automatically when the artifact is needed.

PS:
Or/and if a "period" can be set on the label-verifier plugin
Sorry, I did not found the correct category to fill an "improvement request" on the label-verifier plugin too.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the matrix-build report job when a slave shuts down and artifact copying reports "Unable to access workspace for artifact copy. Slave node offline?" Review the copyartifact-plugin and matrix-project-plugin entry points involved in workspace and artifact retrieval. Done means the intended offline-slave behavior is implemented and verified; the separate label-verifier period request remains an alternative mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, 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.