jenkinsci / jenkinsci/matrix-project-plugin
[JENKINS-9593] Copy artifact fails when slave is offline
- 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
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
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